diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-05 19:47:24 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-05 19:47:24 +0100 |
commit | cef7699b4d4fe1a5815f527fe1994e0f6ab4c8e7 (patch) | |
tree | ada94fb712491bd549acdf248fe82b7950c9f619 /lib | |
parent | d8156669faa76e199bd2a0576163ae58f8ae7185 (diff) | |
download | chawan-cef7699b4d4fe1a5815f527fe1994e0f6ab4c8e7.tar.gz |
fix bug in prev commit
it's 0, not 1 :(
Diffstat (limited to 'lib')
-rw-r--r-- | lib/quickjs/libregexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/libregexp.c b/lib/quickjs/libregexp.c index 43a5b2dc..34a8c013 100644 --- a/lib/quickjs/libregexp.c +++ b/lib/quickjs/libregexp.c @@ -2444,7 +2444,7 @@ int lre_exec(uint8_t **capture, StackInt *stack_buf; if (cbuf_width == 3) /* UTF-8 */ - cbuf_width = 1; + cbuf_width = 0; re_flags = bc_buf[RE_HEADER_FLAGS]; s->multi_line = (re_flags & LRE_FLAG_MULTILINE) != 0; s->ignore_case = (re_flags & LRE_FLAG_IGNORECASE) != 0; |