Skip to content

Fix regex sets pod to handle more /flags, and update pod #19459

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

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

khwilliamson
Copy link
Contributor

The pod didn't reflect restrictions on what can go into such a class.

@jkeenan
Copy link
Contributor

jkeenan commented Feb 24, 2022

The pod didn't reflect restrictions on what can go into such a class.

Can you point us to places in the test suite which exercise the code whose documentation needs adjusting?

@khwilliamson
Copy link
Contributor Author

khwilliamson commented Feb 24, 2022 via email

The pod didn't reflect restrictions on what can go into such a class.
See Perl#16779 (comment)

This commit extends the flags accepted by nested calls to regex sets to
any legal set.  Previously it allowed only '^', as that is what an
actual compilation would return.  But as pointed out in the conversation
in that ticket, it's possible to detach flags from the rest of the
pattern, and to write equivalent ones in multiple ways.

This commit just changes one line to look for any legal flag, not
restricting it to '^'.
@khwilliamson khwilliamson changed the title perlrecharclass: Update regex sets pod Fix regex sets pod to handle more /flags, and update pod Mar 3, 2022
@khwilliamson khwilliamson merged commit 670bc82 into Perl:blead Mar 3, 2022
@khwilliamson khwilliamson deleted the pr_api4 branch March 3, 2022 22:21
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