mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-08 00:10:59 +00:00
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:
parent
5dd7032aad
commit
ed0b91109d
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@
|
|||
],
|
||||
|
||||
// == begin transform regexp
|
||||
number = '(?:[-+]?\\d+(?:\\.\\d+)?(?:e[-+]?\\d+)?)',
|
||||
number = '(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:e[-+]?\\d+)?)',
|
||||
|
||||
commaWsp = '(?:\\s+,?\\s*|,\\s*)',
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue