We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54efb62 commit 9c9142aCopy full SHA for 9c9142a
acorn/src/parseutil.js
@@ -6,7 +6,7 @@ const pp = Parser.prototype
6
7
// ## Parser utilities
8
9
-const literal = /^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/
+const literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/
10
pp.strictDirective = function(start) {
11
for (;;) {
12
// Try to find string literal.
0 commit comments