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

Don’t crash when scanning candidate matching the prefix #14588

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

thecrypticace
Copy link
Contributor

When a prefix is set in a stylesheet and we found a candidate that is equal to the prefix we would crash:

@import "tailwindcss" prefix(tomato);
console.log("tomato")

This PR fixes this case by ensuring that we have something that looks like a variant before considering a prefix.

@thecrypticace thecrypticace merged commit 60b0e9c into next Oct 4, 2024
1 check passed
@thecrypticace thecrypticace deleted the fix/prefix-raw-candidate-crash branch October 4, 2024 09:58
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.

2 participants