Project

General

Profile

Backport #8210 ยป fix-8210-2.diff

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

View differences:

regexec.c
4012 4012
	  start = min_semi_end - reg->anchor_dmax;
4013 4013
	  if (start < end)
4014 4014
	    start = onigenc_get_right_adjust_char_head(reg->enc, str, start);
4015
	  else { /* match with empty at end */
4015
	  if (start >= end) { /* match with empty at end */
4016 4016
	    start = onigenc_get_prev_char_head(reg->enc, str, end);
4017 4017
	  }
4018 4018
	}