diff options
author | 2021-04-08 19:17:34 +0000 | |
---|---|---|
committer | 2021-04-08 19:17:34 +0000 | |
commit | 4ccf4196e31333b41e37259488f6fa0a81c3518b (patch) | |
tree | 1ebf88a7266917a0b0e17b011e9c05c55a6b9161 /src | |
parent | 72ae661e9e6f7b32adf9e6a47cdc6352dfa2a27d (diff) | |
download | astro-4ccf4196e31333b41e37259488f6fa0a81c3518b.tar.gz astro-4ccf4196e31333b41e37259488f6fa0a81c3518b.tar.zst astro-4ccf4196e31333b41e37259488f6fa0a81c3518b.zip |
[ci] npm run format
Diffstat (limited to 'src')
-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; }); } |