aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-02-09 06:21:15 +0000
committerGitHub <noreply@github.com>2021-02-09 14:21:15 +0800
commit14fedbf123a5d8a86621ac6aa996042ee0011b47 (patch)
tree4edc82f707dc9a66f316c6d05ad4fabffbe8fb6d /lib/parse.js
parentfcee32527bd251febeb7b45251d33756fcee207e (diff)
downloadtracifyjs-14fedbf123a5d8a86621ac6aa996042ee0011b47.tar.gz
tracifyjs-14fedbf123a5d8a86621ac6aa996042ee0011b47.zip
fix corner case with template literals (#4631)
fixes #4630
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/parse.js b/lib/parse.js
index c8f63d80..b926f188 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -249,6 +249,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
if (peek() == "{") {
next();
strings.push(s);
+ S.regex_allowed = true;
return true;
}
}