regexp: fixed the zero advance logic in quantifiers (github issue #158)

This commit is contained in:
Fabrice Bellard
2024-01-10 14:36:19 +01:00
parent f25e5d4094
commit 10fc744ae4
4 changed files with 53 additions and 77 deletions

View File

@@ -50,8 +50,7 @@ DEF(range32, 3) /* variable length */
DEF(lookahead, 5)
DEF(negative_lookahead, 5)
DEF(push_char_pos, 1) /* push the character position on the stack */
DEF(bne_char_pos, 5) /* pop one stack element and jump if equal to the character
position */
DEF(check_advance, 1) /* pop one stack element and check that it is different from the character position */
DEF(prev, 1) /* go to the previous char */
DEF(simple_greedy_quant, 17)