diff options
Diffstat (limited to 'src/regex.js')
-rw-r--r-- | src/regex.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.js b/src/regex.js index d2e6c78..265a11a 100644 --- a/src/regex.js +++ b/src/regex.js @@ -1,7 +1,7 @@ // Storage for regular expressions SVG.regex = { // Parse unit value - unit: /^(-?[\d\.]+)([a-z%]{0,2})$/ + numberAndUnit: /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i // Parse hex value , hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i |