Skip to content

Commit df66c45

Browse files
committed
fix: make data-v-* regexp more expansive
1 parent f12d726 commit df66c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const useChecker = (
2727
}
2828

2929
// Clean up Vue scoped style attributes
30-
html = typeof html === 'string' ? html.replace(/ ?data-v-[-A-Za-z0-9]+(=["']([-A-Za-z0-9]|\/|:|\.)*["'])?/g, '') : html
30+
html = typeof html === 'string' ? html.replace(/ ?data-v-[-A-Za-z0-9]+(=["'][^"']+["'])?/g, '') : html
3131
const { valid, results } = await validator.validateString(html)
3232

3333
if (valid && !results.length) {

0 commit comments

Comments
 (0)