mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fixed inverted group thrown off by quantifiers
This commit is contained in:
parent
382db0898e
commit
f01ce3276e
@ -603,10 +603,8 @@ struct RegExNodeGroup : public RegExNode {
|
||||
|
||||
int res = childset[i]->test(s, pos);
|
||||
|
||||
if (s.complete)
|
||||
return res;
|
||||
|
||||
if (inverse) {
|
||||
s.complete = false;
|
||||
if (res < 0)
|
||||
res = pos + 1;
|
||||
else
|
||||
@ -616,6 +614,9 @@ struct RegExNodeGroup : public RegExNode {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (s.complete)
|
||||
return res;
|
||||
|
||||
if (res >= 0) {
|
||||
if (reset_pos)
|
||||
res = pos;
|
||||
|
Loading…
Reference in New Issue
Block a user