From 189ab96e3c1e2d1070422950c4504027dba6e7ae Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 13 Dec 2020 23:56:13 -0700 Subject: [PATCH] C2G strings can be empty --- js/format-c2g.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/format-c2g.js b/js/format-c2g.js index f323d4b..1376196 100644 --- a/js/format-c2g.js +++ b/js/format-c2g.js @@ -1487,7 +1487,7 @@ const TOKENIZE_RX = RegExp( // 2: Comments are preceded by ; or // for some reason and run to the end of the line '|(?:;|//)(.*)' + // 3: Strings are double-quoted (only!) and contain no escapes - '|"([^"]+?)"' + + '|"([^"]*?)"' + // 4: Labels are indicated by a #, including when used with 'goto' // (the exact set of allowed characters is unclear and i'm fudging it here) '|#(\\w+)' +