Be able to parse numbers with no digits before the decimal point.

Per the [SVG spec](http://www.w3.org/TR/SVG11/types.html#DataTypeNumber), non-integer number values do not necessarily have any digits before the decimal point.
This commit is contained in:
Jim Rodovich 2014-05-08 11:20:56 -05:00
parent 5dd7032aad
commit ed0b91109d

View file

@ -163,7 +163,7 @@
],
// == begin transform regexp
number = '(?:[-+]?\\d+(?:\\.\\d+)?(?:e[-+]?\\d+)?)',
number = '(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:e[-+]?\\d+)?)',
commaWsp = '(?:\\s+,?\\s*|,\\s*)',