We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
data-v-*
1 parent f12d726 commit df66c45Copy full SHA for df66c45
src/runtime/validator.ts
@@ -27,7 +27,7 @@ export const useChecker = (
27
}
28
29
// 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
+ html = typeof html === 'string' ? html.replace(/ ?data-v-[-A-Za-z0-9]+(=["'][^"']+["'])?/g, '') : html
31
const { valid, results } = await validator.validateString(html)
32
33
if (valid && !results.length) {
0 commit comments