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

feat: raise warning with some patterns that have many 2-byte atoms. #264

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

plusvic
Copy link
Member

@plusvic plusvic commented Dec 13, 2024

Regular expressions like /[A-Za-z]/{N,} with N>=2, can be very slow because they produce a large number of 2-bytes atoms. Raise warnings on those cases.

Regular expressions like `/[A-Za-z]/{N,}` with N>=2, can be very slow because they produce a large number of 2-bytes atoms. Raise warnings on those cases.
@plusvic plusvic enabled auto-merge (squash) December 13, 2024 09:27
@plusvic plusvic merged commit 895a614 into main Dec 13, 2024
31 checks passed
@plusvic plusvic deleted the slow-patterns branch December 13, 2024 10:20
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.

1 participant