From 30ace40eb12bce6e5e56b98c3ae0b248c5ed1d55 Mon Sep 17 00:00:00 2001 From: Harvey Banham Date: Mon, 10 Oct 2022 10:51:56 +0100 Subject: [PATCH] Include hyphen inside regex matching list --- src/runtime/validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {