Backport #8210 » fix-8210-2.diff
regexec.c | ||
---|---|---|
start = min_semi_end - reg->anchor_dmax;
|
||
if (start < end)
|
||
start = onigenc_get_right_adjust_char_head(reg->enc, str, start);
|
||
else { /* match with empty at end */
|
||
if (start >= end) { /* match with empty at end */
|
||
start = onigenc_get_prev_char_head(reg->enc, str, end);
|
||
}
|
||
}
|