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

[JIT] Support CSS Variables in arbitrary calc #4147

Merged
merged 1 commit into from Apr 30, 2021

Conversation

sibbng
Copy link
Contributor

@sibbng sibbng commented Apr 21, 2021

Follow up #3933
Fix #4005

That regex comes from twind reporitory. @sastan has made an amazing regex that covers even most complex arbitrary calc's and I tweak it little bit. Also it doesn't include back reference groups. So I hope that fixes #4005

I added few more tests and ran them on my local machine they are working as expected.

@adamwathan adamwathan force-pushed the master branch 2 times, most recently from c681549 to 23b71a9 Compare Apr 23, 2021
@adamwathan adamwathan merged commit b80b5bb into tailwindlabs:master Apr 30, 2021
2 checks passed
@adamwathan
Copy link
Member

adamwathan commented Apr 30, 2021

Cool thank you!

@sibbng sibbng deleted the improve-arbitrary-calc branch Apr 30, 2021
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