mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] npm run format
This commit is contained in:
parent
72ae661e9e
commit
4ccf4196e3
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ const PRISM_IMPORT = `import Prism from 'astro/components/Prism.astro';\n`;
|
||||||
const prismImportExp = /import Prism from ['"]astro\/components\/Prism.astro['"]/;
|
const prismImportExp = /import Prism from ['"]astro\/components\/Prism.astro['"]/;
|
||||||
|
|
||||||
function escape(code: string) {
|
function escape(code: string) {
|
||||||
return code.replace(/[`$]/g, match => {
|
return code.replace(/[`$]/g, (match) => {
|
||||||
return '\\' + match;
|
return '\\' + match;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue