Skip to content

Commit 91936b0

Browse files
authored
fix: account for empty scoped style attributes (#479)
1 parent f4906ff commit 91936b0

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
@@ -29,7 +29,7 @@ export const useChecker = (
2929
}
3030

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

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

0 commit comments

Comments
 (0)