-
Notifications
You must be signed in to change notification settings - Fork 33
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
Floating number with unknown unit can't be parsed #132
Labels
Comments
In 8.2, it still fails to parse, but at least does not crash. |
Moving the |
ludofischer
added a commit
that referenced
this issue
Jan 12, 2022
Fix #132 `\b` also matches '.' so the regex for the number expression would match `41` in `41.7rpx`. Then `UNKNOWN_DIMENSION` would match `.7rpx` and create the invalid sequence `NumberExpression`, `UnknownDimension`.
ludofischer
added a commit
that referenced
this issue
Jan 12, 2022
Fix #132 `\b` also matches '.', so the regex for the number expression would match `41` in `41.7rpx`. Then `UNKNOWN_DIMENSION` would match `.7rpx` and create the invalid sequence `NumberExpression`, `UnknownDimension`.
same problem |
I’m having the issue with relatively new
|
Here im facing the same issue with 11569:3 ⚠ Parse error on line 1:
var(--my-css-var) + -0.3cap
----------------------^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
postcss-calc leaves integer with unknown unit untouched, but when it comes to floating number, it fails.
Here's the error log:
The text was updated successfully, but these errors were encountered: