Skip to content

Commit 77c58e8

Browse files
committed
fix: correct regex for empty style detection in prettierCode function
1 parent 61f6559 commit 77c58e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prettierCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getVueCompilerSfc } from './utils'
22

3-
const emptyStyle = /<style[\s\w'=]*>(\s*)/
3+
const emptyStyle = /<style[\s\w'=]*>(\s+)/
44

55
export async function prettierCode(code: string) {
66
const { parse } = await getVueCompilerSfc()

0 commit comments

Comments
 (0)