From 7f6bb6368375e6040bbcab29d0e4c4f824d1480a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 22 Nov 2014 09:01:01 -0800 Subject: [PATCH] Correctly handle white-space before first matrix value when handling transform SVG attribute. Closes #531. --- src/svg/SVGImport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/SVGImport.js b/src/svg/SVGImport.js index 2e2ff2a9..ee0b72f0 100644 --- a/src/svg/SVGImport.js +++ b/src/svg/SVGImport.js @@ -321,7 +321,7 @@ new function() { if (!transform) break; // Command come before the '(', values after - var parts = transform.split('('), + var parts = transform.split(/\(\s*/), command = parts[0], v = parts[1].split(/[\s,]+/g); // Convert values to floats