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: handle identifier with regex characters #243

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

rgalonso
Copy link
Contributor

Provides a test for and the solution to GitHub
issue #242. Namely, an identifier which contains
regex characters (e.g. "[TODO]") is properly
handled by having the parser look for literal
"[" and "]" characters rather than treating those
characters as part of a regex pattern. The word
boundary regex pattern '\b' does NOT properly
handle this, so a slightly different pattern is
used to identify the boundary.

Closes #242

Provides a test for and the solution to GitHub
issue alstr#242. Namely, an identifier which contains
regex characters (e.g. "[TODO]") is properly
handled by having the parser look for literal
"[" and "]" characters rather than treating those
characters as part of a regex pattern. The word
boundary regex pattern '\b' does NOT properly
handle this, so a slightly different pattern is
used to identify the boundary.
@rgalonso
Copy link
Contributor Author

@alstr, OK, really, this is the last one for a while. Thanks

@alstr alstr merged commit 5157ba9 into alstr:master Nov 12, 2024
1 check passed
@alstr
Copy link
Owner

alstr commented Nov 12, 2024

@alstr, OK, really, this is the last one for a while. Thanks

No problem, the more the merrier! 😄 Thanks!

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.

identifier with regex character is not properly matched
2 participants