Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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
@mdjastrzebski mdjastrzebski deleted the fix/any-handling branch April 29, 2024 21:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant