Skip to content

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

Merged
thecrypticace merged 3 commits into
nextfrom
fix/prefix-raw-candidate-crash
Oct 4, 2024
Merged

Don’t crash when scanning candidate matching the prefix#14588
thecrypticace merged 3 commits into
nextfrom
fix/prefix-raw-candidate-crash

Conversation

@thecrypticace

Copy link
Copy Markdown
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
@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