[ci] npm run format

This commit is contained in:
matthewp 2021-04-08 19:17:34 +00:00 committed by GitHub Actions
parent 72ae661e9e
commit 4ccf4196e3

View file

@ -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;
});
}