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

Only compile arbitrary values ending in ] #15503

Draft
wants to merge 3 commits into
base: next
Choose a base branch
from
Draft

Conversation

RobinMalfait
Copy link
Member

This PR ensures that if you are using an arbitrary value such as bg-[red that it only compiles if it's a properly closed arbitrary value.

Currently what happens is that it assumes the ] is there, and cuts it off. This then results in the bg-[red to be compiled as:

.bg-\[red {
  background-color: re;
}

Note how the d in red is cut off. That's the assumption that the ] is there.

This PR fixes that by ensuring that the arbitrary value is properly closed.

Fixes: #15484

@RobinMalfait RobinMalfait changed the title Ensure arbitrary values end with ] Only compile arbitrary values ending in ] Dec 29, 2024
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.

[v4] Arbitrary value with typo compiles
1 participant