summaryrefslogtreecommitdiff
path: root/libregexp-opcode.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2024-01-10 14:36:19 +0100
committerFabrice Bellard <fabrice@bellard.org>2024-01-10 14:36:19 +0100
commit10fc744ae4dfe59b685f5643b71530891cf0be3b (patch)
tree3d94d16a2e6f7b3d4c843919ee8326cebe9c4f0f /libregexp-opcode.h
parentf25e5d4094a11cf098670417e8a16ffb7cbadda0 (diff)
downloadquickjs-10fc744ae4dfe59b685f5643b71530891cf0be3b.tar.gz
quickjs-10fc744ae4dfe59b685f5643b71530891cf0be3b.zip
regexp: fixed the zero advance logic in quantifiers (github issue #158)
Diffstat (limited to 'libregexp-opcode.h')
-rw-r--r--libregexp-opcode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libregexp-opcode.h b/libregexp-opcode.h
index f90c23b..189d121 100644
--- a/libregexp-opcode.h
+++ b/libregexp-opcode.h
@@ -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)