diff options
Diffstat (limited to 'lib/quickjs')
-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; |