-
-
Notifications
You must be signed in to change notification settings - Fork 104
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: properly handle arbitrary var names with dashed digits #176
Conversation
I do not know. I tried a different regexp ( As I understand these tests: they are for variables that start with |
Yes |
To clarify actual issue is |
@sastan I fixed the issue on latest commit. At first try I wasn't aware of that square brackets are getting removed in
Anyway I fixed issue by modifying the regex slightly. Probably it could be more simplified. Looks like CI failing because of size limits right now. |
Great! Awesome job. |
Regarding the failed size report could you increase the size limit to 12.1 and then we can get this merged. |
Thanks 🤗
Done 👍 |
I'll create a release soon within the next day. |
There you go: v0.16.12 |
For some reason
w-[calc(100%/3-1rem*2)]
test fails.But when I run that on browser console it gives me expected result.
"w-[calc(100%/3-1rem*2)]".replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*]))(?:%|[a-z]+)?|\))([+\-/*])/g, '$1 $2 ')
I really would like to learn why it fails.