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/helpers.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/helpers.js')
-rw-r--r-- | src/helpers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.js b/src/helpers.js index 7fe9f7a..f3a36b9 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -72,7 +72,7 @@ function stringToMatrix(source) { source = source .replace(SVG.regex.whitespace, '') .replace(SVG.regex.matrix, '') - .split(',') + .split(SVG.regex.matrixElements) // convert string values to floats and convert to a matrix-formatted object return arrayToMatrix( |