diff options
-rw-r--r-- | src/regex.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.js b/src/regex.js index 1b26afd..d2e6c78 100644 --- a/src/regex.js +++ b/src/regex.js @@ -34,7 +34,7 @@ SVG.regex = { , isBlank: /^(\s+)?$/ // Test for numeric string -, isNumber: /^-?[\d\.]+$/ +, isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i // Test for percent value , isPercent: /^-?[\d\.]+%$/ @@ -64,4 +64,4 @@ SVG.regex = { // matches X , X: /X/g -}
\ No newline at end of file +} |