]> granicus.if.org Git - onig/commitdiff
fix #70 : Matching the end of a string followed by an empty greedy regex and a word...
authorK.Kosako <kkosako0@gmail.com>
Sat, 16 Sep 2017 12:47:52 +0000 (21:47 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sat, 16 Sep 2017 12:47:52 +0000 (21:47 +0900)
src/regexec.c

index 70871845de649694f1dfc89879283cb025318657..c77d94c4478f066616fa754088e73231529e8eeb 100644 (file)
@@ -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);