Skip to content

Commit

Permalink
Merge e3e3724 into 44e4059
Browse files Browse the repository at this point in the history
  • Loading branch information
nwc10 committed Jun 9, 2021
2 parents 44e4059 + e3e3724 commit 9663b27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions regexec.c
Expand Up @@ -3651,9 +3651,7 @@ Perl_regexec_flags(pTHX_ REGEXP * const rx, char *stringarg, char *strend,
prog->lastparen = prog->lastcloseparen = 0;
RXp_MATCH_UTF8_set(prog, utf8_target);
prog->offs[0].start = s - strbeg;
prog->offs[0].end = utf8_target
? (char*)utf8_hop_forward((U8*)s, prog->minlenret, (U8 *) strend) - strbeg
: s - strbeg + prog->minlenret;
prog->offs[0].end = HOP3(s, prog->minlenret, strend) - (U8 *)strbeg;
if ( !(flags & REXEC_NOT_FIRST) )
S_reg_set_capture_string(aTHX_ rx,
strbeg, strend,
Expand Down

0 comments on commit 9663b27

Please sign in to comment.