Skip to content

Commit ab1eff0

Browse files
fix
1 parent e0fd522 commit ab1eff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/js.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ exports.set = function(code, oldNames, newNames, jstrimmedstrvarbasestr) {
8585
(char === '}' && line.includes('`') && line.includes('$') && line.includes('{'))
8686
)) {
8787
inString = true;
88-
stringChar = char;
88+
stringChar = char === '}' ? '`' : char;
8989
resultLine += char;
9090
} else if (
9191
inString && ((char === stringChar && line[i - 1] !== '\\') ||

0 commit comments

Comments
 (0)