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
Apparent typo in script_run docs #16375
Comments
From @trwyantCreated by @trwyantThe documentation for the new regex (+script_run:...) experimental qr/(?script_run: \d+ \b )/x which appears in pod/perl5278delta.pod and pod/perlre.pod, fails to I intend to attach a patch file, derived from commit Perl Info
|
From @trwyantperlbug.patchdiff --git a/pod/perl5278delta.pod b/pod/perl5278delta.pod
index 501e8b2cb3..f9f51aa185 100644
--- a/pod/perl5278delta.pod
+++ b/pod/perl5278delta.pod
@@ -33,7 +33,7 @@ A mixture of scripts, such as Cyrillic and Latin, in a string is often
the sign of a spoofing attack. A new regular expression construct
now allows for easy detection of these. For example, you can say
- qr/(?script_run: \d+ \b )/x
+ qr/(+script_run: \d+ \b )/x
And the digits matched will all be from the same set of 10. You won't
get a look-alike digit from a different script that has a different
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 993a08ede8..74f44fedc3 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -2470,7 +2470,7 @@ own set. This is because these are often used in commerce even in such
scripts. But any mixing of the ASCII and other digits will cause the
sequence to not be a script run, failing the match. As an example,
- qr/(?script_run: \d+ \b )/x
+ qr/(+script_run: \d+ \b )/x
guarantees that the digits matched will all be from the same set of 10.
You won't get a look-alike digit from a different script that has a
|
@khwilliamson - Status changed from 'new' to 'open' |
From @khwilliamsonThanks Applied as 85a8548 -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132748 (status was 'resolved')
Searchable as RT132748$
The text was updated successfully, but these errors were encountered: