diff --git a/packages/extractor-pug/src/index.ts b/packages/extractor-pug/src/index.ts index 9d8ab17a71..5ca516fb14 100644 --- a/packages/extractor-pug/src/index.ts +++ b/packages/extractor-pug/src/index.ts @@ -1,6 +1,6 @@ import type { Extractor } from '@unocss/core' -const regexVueTemplate = /]*?>\n([\s\S]*?\n)<\/template>/gm +const regexVueTemplate = /]*?>\s*([\s\S]*?\s*)<\/template>/gm export default function extractorPug(): Extractor { async function compile(code: string, id: string) {