summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-20 15:44:15 -0200
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-20 17:45:17 -0200
commitd07a17de2890bf712a3bd1984e1cbeda2269ba50 (patch)
treeb6fc3b6ac621f82f9546e164b8e2c56d95fa1c78 /dist/svg.js
parent0667187ea61e5b1005e2dedcebe64a915a70fc24 (diff)
downloadsvg.js-d07a17de2890bf712a3bd1984e1cbeda2269ba50.tar.gz
svg.js-d07a17de2890bf712a3bd1984e1cbeda2269ba50.zip
replace call to filter function with better regex
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 74a6e24..cf06650 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@woutfierens.com>
* @license MIT
*
-* BUILT: Thu Oct 20 2016 18:14:13 GMT+0200 (Mitteleuropäische Sommerzeit)
+* BUILT: Thu Oct 20 2016 15:35:29 GMT-0200 (WGST)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -556,7 +556,7 @@ SVG.extend(SVG.PointArray, {
if (Array.isArray(array)) return array
// parse points
- array = array.split(/\s|,/).filter(function(a){ return a !== '' })
+ array = array.split(/\s+|,/)
// validate points - https://svgwg.org/svg2-draft/shapes.html#DataTypePoints
// Odd number of coordinates is an error. In such cases, drop the last odd coordinate.