Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 6c8b86a99632f38f72a85c303480aa3f3312711c
https://github.com/Perl/perl5/commit/6c8b86a99632f38f72a85c303480aa3f3312711c
Author: Richard Leach <[email protected]>
Date: 2026-10-12 (Mon, 12 Oct 2026)
Changed paths:
M pod/perldelta.pod
M regexec.c
M t/re/re_tests
Log Message:
-----------
PLUS should not skip characters if a (*SKIP) already did so
When a regex match attempt:
* starts on an anchored substring with a single character `PLUS` regnode
* and the attempted match is unsuccessful
all consecutive instances of that character are then skipped over as
they cannot start a successful match either.
That is fine, as long as the failed pattern did not encounter a
`(*SKIP)` and has already moved past those consecutive characters.
This commit adds a check to see if that has transpired. Previously,
characters that should have formed part of the _next_ attempted match
could have been erroneously skipped. (A "double-skip" in effect.)
This commit adds some new tests to _re_tests_ and also gives the two
preceding tests some descriptions.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications