From 65f9900d5e98272a1c0c0d9ca922666603110804 Mon Sep 17 00:00:00 2001 From: Ray Glover Date: Fri, 14 Aug 2015 16:59:01 +0100 Subject: Make parsing a 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 --- src/regex.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/regex.js') 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 -- cgit v1.2.3