Skip to content

Commit

Permalink
fix(extractor-pug): use any whitespace instead LF on regexp (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jul 6, 2022
1 parent 71c77b3 commit 6f07296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extractor-pug/src/index.ts
@@ -1,6 +1,6 @@
import type { Extractor } from '@unocss/core'

const regexVueTemplate = /<template.*?lang=['"]pug['"][^>]*?>\n([\s\S]*?\n)<\/template>/gm
const regexVueTemplate = /<template.*?lang=['"]pug['"][^>]*?>\s*([\s\S]*?\s*)<\/template>/gm

export default function extractorPug(): Extractor {
async function compile(code: string, id: string) {
Expand Down

0 comments on commit 6f07296

Please sign in to comment.