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

fix: prevent embedding any (.) in charClass #86

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

mdjastrzebski
Copy link
Member

@mdjastrzebski mdjastrzebski commented Apr 29, 2024

Summary

any (regex: .) could be added to char class

any // => /./ - ok matches any char
charClass(any) // => /[.]/ - not ok, `.` in char class looses special meaning and matchers literal dot

Test plan

Adapt automated tests

@mdjastrzebski mdjastrzebski merged commit de06af1 into main Apr 29, 2024
4 checks passed
@mdjastrzebski mdjastrzebski deleted the fix/any-handling branch April 29, 2024 21:32
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