diff --git a/src/runtime/validator.ts b/src/runtime/validator.ts index bbf90f89..b5b3f810 100644 --- a/src/runtime/validator.ts +++ b/src/runtime/validator.ts @@ -24,7 +24,7 @@ export const useChecker = ( } // Clean up Vue scoped style attributes - html = typeof html === 'string' ? html.replace(/ ?data-v-[a-z0-9]+\b/g, '') : html + html = typeof html === 'string' ? html.replace(/ ?data-v-[-a-z0-9]+\b/g, '') : html const { valid, results } = validator.validateString(html) if (valid && !results.length) {