From 836c68f76e39a79b189cc96c6c6c350f66393ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez=20Jim=C3=A9nez?= Date: Tue, 5 Jul 2022 22:49:16 +0200 Subject: [PATCH] fix(extractor-pug): use any whitespace instead LF on regexp --- 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) {