Skip to content

Escape syntax character in regex#4458

Merged
Ms2ger merged 1 commit intotc39:mainfrom
lgalfaso:patch-4
Apr 21, 2025
Merged

Escape syntax character in regex#4458
Ms2ger merged 1 commit intotc39:mainfrom
lgalfaso:patch-4

Conversation

@lgalfaso
Copy link
Copy Markdown
Contributor

Syntax characters need to be escaped when they are part of a regex.

https://tc39.es/ecma262/#prod-Atom
https://tc39.es/ecma262/#prod-PatternCharacter

@lgalfaso lgalfaso requested review from a team as code owners April 18, 2025 17:59
@Ms2ger Ms2ger merged commit 34b0db5 into tc39:main Apr 21, 2025
10 of 11 checks passed
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