Project

General

Profile

Backport #8210 » fix-8210-2.diff

k_takata (Ken Takata), 04/10/2013 12:41 AM

View differences:

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);
}
}
(2-2/3)