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

better-regex rule breaks regex #1754

Open
SimonSiefke opened this issue Mar 23, 2022 · 1 comment
Open

better-regex rule breaks regex #1754

SimonSiefke opened this issue Mar 23, 2022 · 1 comment
Labels

Comments

@SimonSiefke
Copy link
Contributor

/\p{L}/u.test('Θ') // true

get transformed into

/p{L}/u.test('Θ') // false

which produces wrong output.

Possible solutions

Short term solution: Disable better-regex rule by default
Long term solution: Fixing the bug 😃

@fisker
Copy link
Collaborator

fisker commented Mar 24, 2022

Can you report this to safe-regex? This rule uses it under the hood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants