Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfrom parsing with floating numbers #84

Closed
Beregoz opened this issue Dec 13, 2018 · 1 comment
Closed

transfrom parsing with floating numbers #84

Beregoz opened this issue Dec 13, 2018 · 1 comment
Assignees

Comments

@Beregoz
Copy link

Beregoz commented Dec 13, 2018

SvgTransformList

private static Regex _regExtract = new Regex("([A-Za-z]+)\\s*\\(([\\-0-9\\.eE\\,\\s]+)\\)", RegexOptions.Compiled);

Will not match with matrix(1.00000000000e+00,0.000000000000e+00,0.0000000000e+00,-1.00000000000e+00,0.0000000e+00,-6.500000000e+01)

I think it should be something like:

private static Regex _regExtract = new Regex("([A-Za-z]+)\\s*\\(([\\-0-9\\.eE+-\\,\\s]+)\\)", RegexOptions.Compiled);

So the "+" sign will be handled as well.

@paulushub paulushub self-assigned this Dec 14, 2018
paulushub added a commit that referenced this issue Dec 15, 2018
@paulushub
Copy link
Contributor

paulushub commented Dec 15, 2018

@Beregoz Thanks for tracking and fixing this issue. I have verified your solution and it works perfectly.
The fix is committed in 5e963d5

Note: I have not committed build assemblies (contents of the \Output folder), because my local source contains other changes, which are parts of on-going SVG fonts supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants