Skip to content

Commit

Permalink
fix: account for empty scoped style attributes (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli authored Apr 18, 2024
1 parent f4906ff commit 91936b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useChecker = (
}

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

if (valid && !results.length) {
Expand Down

0 comments on commit 91936b0

Please sign in to comment.