From fce0c93f94bf645476d942792b6e7e46f010d85f Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 6 Oct 2023 14:51:36 +0100 Subject: [PATCH] Avoid adding the single char to the tokenstring when lexing regex (it all goes in a JsVar) --- src/jslex.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/jslex.c b/src/jslex.c index 446e081183..8812f3fdd3 100644 --- a/src/jslex.c +++ b/src/jslex.c @@ -540,7 +540,6 @@ static void jslLexRegex() { lex->currCh=='m' || lex->currCh=='y' || lex->currCh=='u') { - jslTokenAppendChar(lex->currCh); jsvStringIteratorAppend(&it, lex->currCh); jslGetNextCh(); }