Skip to content

Commit

Permalink
fix: *missing changes
Browse files Browse the repository at this point in the history
better escape
  • Loading branch information
ieow committed Oct 14, 2024
1 parent f250442 commit 6fe5de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const createTransformer = (
...args,
src:
"export default String.raw`" +
escape(res).replace(/\$\{(.*?)\}/g, "\\$\\{$1\\}") +
escape(res).replace(/\$/g, '\\$') +
"`.replace(/\\\\([`$])/g, '\\$1')",
});
}
Expand Down

0 comments on commit 6fe5de0

Please sign in to comment.