Bläddra i källkod

Original squirrel regex is buggy this only fix one case.

mingodad 8 år sedan
förälder
incheckning
21a3df684e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      SquiLu/sqstdlib/sqstdrex.cpp

+ 1 - 1
SquiLu/sqstdlib/sqstdrex.cpp

@@ -411,7 +411,7 @@ static const SQChar *sqstd_rex_matchnode(SQRex* exp,SQRexNode *node,const SQChar
 				break;
 			nmaches++;
 			good=s;
-			if(greedystop) {
+			if(greedystop && !sqstd_rex_matchclass(exp,&exp->_nodes[node->left],*s)) {
 				//checks that 0 matches satisfy the expression(if so skips)
 				//if not would always stop(for instance if is a '?')
 				if(greedystop->type != OP_GREEDY ||