Skip to content

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Aug 19, 2025

Fixes parsing a regex lint selector with a character class like [foo=/[a-z]/].

The parser just looked for the next ] character and aborted there. It didn't account for the regex grammar having this character too.

Fixes #30460

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marvinhagemeister marvinhagemeister merged commit a5d5f47 into main Aug 20, 2025
36 of 37 checks passed
@marvinhagemeister marvinhagemeister deleted the lint-selector-character-class branch August 20, 2025 05: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.

Unable to use RegExp character class with Deno.lint.runPlugin for esquery AST selector
2 participants