From 4ccf4196e31333b41e37259488f6fa0a81c3518b Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 8 Apr 2021 19:17:34 +0000 Subject: [PATCH] [ci] npm run format --- src/compiler/optimize/prism.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/optimize/prism.ts b/src/compiler/optimize/prism.ts index 2a96ab73d6..5c53647960 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; }); }