Skip to content

Commit 900dd93

Browse files
authored
fix: add hyphen to data attribute regexp (#231)
1 parent 9176daf commit 900dd93

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
@@ -26,7 +26,7 @@ export const useChecker = (
2626
}
2727

2828
// Clean up Vue scoped style attributes
29-
html = typeof html === 'string' ? html.replace(/ ?data-v-[a-z0-9]+\b/g, '') : html
29+
html = typeof html === 'string' ? html.replace(/ ?data-v-[-a-z0-9]+\b/g, '') : html
3030
const { valid, results } = validator.validateString(html)
3131

3232
if (valid && !results.length && logLevel === 'verbose') {

0 commit comments

Comments
 (0)