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

fix: unit parsing #58

Merged
merged 1 commit into from Aug 7, 2019
Merged

fix: unit parsing #58

merged 1 commit into from Aug 7, 2019

Conversation

alexander-akait
Copy link
Collaborator

@alexander-akait alexander-akait commented Aug 6, 2019

Rewrite parser using algorithm from spec https://www.w3.org/TR/css-syntax-3/#consume-number, it is better maintenance than loop

Also we have some edge cases where parser return invalid result and try to fix it increase nested if/else

/cc @TrySound

@alexander-akait alexander-akait merged commit d83cd7f into master Aug 7, 2019
@alexander-akait alexander-akait deleted the fix-unit-parsing branch August 7, 2019 18:03
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

Successfully merging this pull request may close these issues.

None yet

2 participants