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 capture group mutations #1333

Merged
merged 1 commit into from
May 2, 2022
Merged

Fix capture group mutations #1333

merged 1 commit into from
May 2, 2022

Conversation

dgollahon
Copy link
Collaborator

@dgollahon dgollahon commented May 2, 2022

  • Fix incomplete mutations for regexp capture groups. As an example, /(\w\d)/ now gets mutated to /(\W\d)/ and /(\w\D)/ instead of just the former case.
  • Likewise, fix capture group -> passive group mutations which would not get properly generated in many cases. As an example, /(\w\d)/ would get mutated to /(?:\w)/ instead of /(?:\w\d)/ like it will now.
  • Closely related to Fix named group mutations #1328

- Fix incomplete mutations for regexp capture groups. As an example, `/(\w\d)/` now gets mutated to `/(\W\d)/` and `/(\w\D)/` instead of just the former case.
- Likewise, fix capture group -> passive group mutations which would not get properly generated in many cases. As an example, `/(\w\d)/` would get mutated to `/(?:\w)/` instead of `/(?:\w\d)/` like it will now.
- Closely related to #1328
@dgollahon dgollahon force-pushed the fix-capture-group-mutations branch from 6d584e7 to 45b7964 Compare May 2, 2022 02:57
@dgollahon dgollahon requested a review from mbj May 2, 2022 02:57
@mbj mbj merged commit 55ac572 into main May 2, 2022
@mbj mbj deleted the fix-capture-group-mutations branch May 2, 2022 11:37
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.

2 participants