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 bug with character class immediately following a string anchor #5527

Conversation

anthony-chang
Copy link
Contributor

The fuzz tests caught a case we were not handling when a predefined character class is used immediately after a string anchor (eg. the pattern a\Z\V) which caused the transpilation to be incorrect. To fix this, I moved the rewriting of character classes \s, \S, \v, \V, \h, \H to the rewrite() stage and factored out the logic handle negated character classes

(This PR contains the second half of the changes from #5522)

Signed-off-by: Anthony Chang antchang@nvidia.com

Signed-off-by: Anthony Chang <antchang@nvidia.com>
@anthony-chang anthony-chang self-assigned this May 18, 2022
@anthony-chang anthony-chang added the bug Something isn't working label May 18, 2022
@anthony-chang
Copy link
Contributor Author

build

@sameerz sameerz added this to the May 2 - May 20 milestone May 18, 2022
@sameerz sameerz merged commit 7c8071b into NVIDIA:branch-22.06 May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants