Uncaught Error: 'matrix(1, 0, 0, 1, 0, -6.6763e-06)' is not a matrix
pinyin opened this issue · 5 comments
pinyin commented
Chrome sometimes return transform matrix in an exponential notation, e.g. -6.6763e-06 in this case.
Is this not supported?
chrvadala commented
I'm not sure that you're talking about the parse ability but in that case unfortunately is not supported
pinyin commented
Yes, I was talking about the fromString
utility, sorry for the ambiguity.
Thanks for your work.
chrvadala commented
The problem is in this line
That regex doesn't support number in that format
You can provide a different Regex to support number formatted in that way.
I think that you can change (-?[0-9]*\.?[0-9]+)
with ([0-9e-]+)
, but I'm not sure that it's enough safe
pinyin commented
OK, I'll try that. Thanks!
chrvadala commented
Fixed with 1.8.0