Browse Source

Fix for accounting for the greed char terminator

mingodad 7 years ago
parent
commit
d1f20f6e10
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SquiLu/sqstdlib/sqstdrex.cpp

+ 1 - 0
SquiLu/sqstdlib/sqstdrex.cpp

@@ -436,6 +436,7 @@ static const SQChar *sqstd_rex_matchnode(SQRex* exp,SQRexNode *node,const SQChar
 			{
 			    while_nmatches++;
 			    s = last_match;
+			    if(greedystop && (greedystop->type == *s)) break;
 			    if(while_nmatches == p1) break;
 			}
 			if(!while_nmatches) break;