From: K.Kosako Date: Sat, 16 Sep 2017 12:47:52 +0000 (+0900) Subject: fix #70 : Matching the end of a string followed by an empty greedy regex and a word... X-Git-Tag: v6.7.0~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e6198308658e088ee84d9a13ccee020ea9756ce;p=onig fix #70 : Matching the end of a string followed by an empty greedy regex and a word boundary (.*\b) fails --- diff --git a/src/regexec.c b/src/regexec.c index 7087184..c77d94c 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -2038,6 +2038,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, s += n; } MOP_OUT; + continue; break; case OP_ANYCHAR_ML_STAR: MOP_IN(OP_ANYCHAR_ML_STAR); @@ -2055,6 +2056,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, } } MOP_OUT; + continue; break; case OP_ANYCHAR_STAR_PEEK_NEXT: MOP_IN(OP_ANYCHAR_STAR_PEEK_NEXT);