Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(validator): account for empty Vue scoped style attributes #479

Merged
merged 1 commit into from
Apr 18, 2024
Merged

fix(validator): account for empty Vue scoped style attributes #479

merged 1 commit into from
Apr 18, 2024

Conversation

dargmuesli
Copy link
Contributor

@dargmuesli dargmuesli commented Apr 18, 2024

In an svg tag I have many data-v-... attributes with an empty value ="". These are currently replaced by this module's regex incorrectly.

What's currently detected:

image

What this PR changes:

image

Disclaimer: Maybe there shouldn't even be data-v-... attributes with their value set to ="". I see other data-v-... attributes with no suffix at all. The existing regex let's me think that the actual bug might be some tooling in my project which incorrectly allows data-v-... attributes to have ="", but which it shouldn't. Do you have any insight into this @danielroe?

In an `svg` tag I have many `data-v-...` attributes with an empty value `=""`. These are currently incorrectly replaced by this module's regex.
Copy link

netlify bot commented Apr 18, 2024

Deploy Preview for html-validator canceled.

Name Link
🔨 Latest commit 0d1bae1
🔍 Latest deploy log https://app.netlify.com/sites/html-validator/deploys/662072a95f93bc0008506391

Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.65%. Comparing base (17a891c) to head (0d1bae1).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #479      +/-   ##
==========================================
+ Coverage   78.99%   81.65%   +2.66%     
==========================================
  Files           4        4              
  Lines         219      229      +10     
  Branches       46       39       -7     
==========================================
+ Hits          173      187      +14     
+ Misses         46       42       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielroe danielroe merged commit 91936b0 into nuxt-modules:main Apr 18, 2024
9 checks passed
@dargmuesli dargmuesli deleted the patch-1 branch April 18, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants