Skip to content

Commit

Permalink
XS: regexp quantifier maximum #1238
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Soquet committed Oct 24, 2023
1 parent a53408a commit de8df1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs/sources/xsre.c
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,7 @@ txBoolean fxMatchRegExp(void* the, txInteger* code, txInteger* data, txString su
mxBreak;
}
quantifier->min = (quantifier->min == 0) ? 0 : quantifier->min - 1;
quantifier->max = (quantifier->max == 0x7FFFFFFF) ? 0x7FFFFFFF : quantifier->max - 1;
quantifier->max = (quantifier->max == 0x7FFFFFFF) ? 0x7FFFFFFF : (quantifier->max == 0) ? 0 : quantifier->max - 1;
mxBreak;
mxCase(cxWordBreakStep):
step = *pointer;
Expand Down

0 comments on commit de8df1a

Please sign in to comment.