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

Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser #12179

Merged
merged 3 commits into from Oct 11, 2023

Conversation

RobinMalfait
Copy link
Contributor

This PR fixes an issue where variants with arbitrary values and with a modifier weren't correctly matched in the RegEx based parser.

Given this example:

<div class="group/parent" data-can-play>
  <div class="bg-blue-300 group-[[data-can-play]:not([data-playing])]/parent:bg-red-300 p-4 w-60">
    Should be red
  </div>
</div>

The group-[[data-can-play]:not([data-playing])]/parent:bg-red-300 wasn't matched correctly. With this change it will be.

Fixes: #12169

@RobinMalfait RobinMalfait changed the title Ensure variants with arbitrary values and with a modifier, are correctly matched in the RegEx based parser Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser Oct 11, 2023
@RobinMalfait RobinMalfait merged commit fa9be73 into master Oct 11, 2023
10 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-12169 branch October 11, 2023 14:38
thecrypticace pushed a commit that referenced this pull request Oct 23, 2023
…tched in the RegEx based parser (#12179)

* add failing test

* ensure variants can have modifiers in regex

* update changelog
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.

Named group with arbitrary data attribute + :not selector does compile
1 participant