Correctly handle white-space before first matrix value when handling transform SVG attribute.

Closes #531.
This commit is contained in:
Jürg Lehni 2014-11-22 09:01:01 -08:00
parent 943034f2c4
commit 7f6bb63683

View file

@ -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