Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Mar 27, 2024
1 parent 2d440b3 commit 3afa10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generator/writers/writeExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function writeExpression(f: ASTExpression, ctx: WriterContext): string {
//

if (f.kind === 'string') {
const s = f.value.replace(/\\\\|\\\"|\\n|\\r|\\t|\\b|\\f/g, (match) => {
const s = f.value.replace(/\\\\|\\"|\\n|\\r|\\t|\\b|\\f/g, (match) => {
switch (match) {
case '\\\\':
return '\\';
Expand All @@ -152,7 +152,7 @@ export function writeExpression(f: ASTExpression, ctx: WriterContext): string {
return match;
}
});
let id = writeString(s, ctx);
const id = writeString(s, ctx);
ctx.used(id);
return `${id}()`;
}
Expand Down

0 comments on commit 3afa10b

Please sign in to comment.