From 6f072964621bc0d59d55eb3b425bcddc2e86dc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Wed, 6 Jul 2022 04:07:56 +0200 Subject: [PATCH] fix(extractor-pug): use any whitespace instead LF on regexp (#1225) --- packages/extractor-pug/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {