diff options
author | Ray Glover <Ray@NAUSICA> | 2015-08-14 16:59:01 +0100 |
---|---|---|
committer | Ray Glover <Ray@NAUSICA> | 2015-08-14 16:59:01 +0100 |
commit | 65f9900d5e98272a1c0c0d9ca922666603110804 (patch) | |
tree | e2224ccc1f00080a475ccbaee296327052c20a9d /src/regex.js | |
parent | 32b8e6c0ebab0409586fa91ab3b11918aa4bfc96 (diff) | |
download | svg.js-65f9900d5e98272a1c0c0d9ca922666603110804.tar.gz svg.js-65f9900d5e98272a1c0c0d9ca922666603110804.zip |
Make parsing a <transform-list> more robust in the face of IE11
which doesn't use commas (',') to delimit matrix elements. see also:
http://www.w3.org/TR/SVG11/coords.html#SVGGlobalTransformAttribute
Diffstat (limited to 'src/regex.js')
-rw-r--r-- | src/regex.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regex.js b/src/regex.js index d08dc7b..a6ffb98 100644 --- a/src/regex.js +++ b/src/regex.js @@ -14,6 +14,9 @@ SVG.regex = { // Parse matrix wrapper , matrix: /matrix\(|\)/g + + // Elements of a matrix +, matrixElements: /,*\s+|,/ // Whitespace , whitespace: /\s/g |