File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const useChecker = (
26
26
}
27
27
28
28
// Clean up Vue scoped style attributes
29
- html = typeof html === 'string' ? html . replace ( / ? d a t a - v - [ - a - z 0 - 9 ] + ( = [ " ' ] ( [ - a - z 0 - 9 ] | \/ | : | \. ) * [ " ' ] ) ? / g, '' ) : html
29
+ html = typeof html === 'string' ? html . replace ( / ? d a t a - v - [ - A - Z a - z 0 - 9 ] + ( = [ " ' ] ( [ - A - Z a - z 0 - 9 ] | \/ | : | \. ) * [ " ' ] ) ? / g, '' ) : html
30
30
const { valid, results } = validator . validateString ( html )
31
31
32
32
if ( valid && ! results . length ) {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ describe('useChecker', () => {
128
128
129
129
await checker (
130
130
'https://test.com/' ,
131
- '<a style="color:red" class="xxx" data-v-inspector="xxxx/xxx .vue:2:3">Link</a>'
131
+ '<a style="color:red" class="xxx" data-v-inspector="Xxxx/Xxx .vue:2:3">Link</a>'
132
132
)
133
133
expect ( mockValidator ) . toHaveBeenCalledWith (
134
134
'<a style="color:red" class="xxx">Link</a>'
You can’t perform that action at this time.
0 commit comments