diff options
-rw-r--r-- | src/compiler/optimize/prism.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/optimize/prism.ts b/src/compiler/optimize/prism.ts index 2a96ab73d..5c5364796 100644 --- a/src/compiler/optimize/prism.ts +++ b/src/compiler/optimize/prism.ts @@ -6,7 +6,7 @@ const PRISM_IMPORT = `import Prism from 'astro/components/Prism.astro';\n`; const prismImportExp = /import Prism from ['"]astro\/components\/Prism.astro['"]/; function escape(code: string) { - return code.replace(/[`$]/g, match => { + return code.replace(/[`$]/g, (match) => { return '\\' + match; }); } |