Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 5c6240fadac873b60c46677b4d5b180f4fb6074b https://github.com/Perl/perl5/commit/5c6240fadac873b60c46677b4d5b180f4fb6074b Author: Yves Orton <demer...@gmail.com> Date: 2023-01-15 (Sun, 15 Jan 2023)
Changed paths: M MANIFEST M regexec.c M t/re/pat_re_eval.t M t/re/re_tests M t/re/regexp.t A t/re/regexp_normal.t Log Message: ----------- regexec.c - fix accept in CURLYX/WHILEM construct. The ACCEPT logic didnt know how to handle WHILEM, which for some reason does not have a next_off defined. I am not sure why. This was revealed by forcing CURLYX optimisations off. This includes a patch to test what happens if we embed an eval group in the tests run by regexp.t when run via regexp_normal.t, which disabled CURLYX -> CURLYN and CURLYM optimisations and revealed this issue. This adds t/re/regexp_normal.t which test "normalized" forms of the patterns in t/re/re_tests by munging them in various ways to see if they still behave as expected. For instance injecting a (?{}) can disable optimisations.