Branch: refs/heads/yves/fix_21534_skip_with_find_byclass_in_match
  Home:   https://github.com/Perl/perl5
  Commit: ea7c81dfea22db6024a999fc133c449671345295
      
https://github.com/Perl/perl5/commit/ea7c81dfea22db6024a999fc133c449671345295
  Author: Yves Orton <demer...@gmail.com>
  Date:   2023-09-30 (Sat, 30 Sep 2023)

  Changed paths:
    M regexec.c
    M t/re/pat_advanced.t

  Log Message:
  -----------
  regexec.c - make find_byclass() work with (*SKIP) and friends

This fixes https://github.com/Perl/perl5/issues/21534

When the previous_occurence_end logic was added it did not account for
patterns where "s" is updated by regtry(). See 21d1ed5 which introduced
this logic. That patch seemed to assume that regtry() would not alter s,
but it does. This fix seems to work around the problem for the verb's,
but it feels like a bodge instead of a proper fix, which I think would
involve reworking the previous_occurrence_end logic to take into account
that regtry() can modify s. But for now this should work.


Reply via email to