Skip to content

Commit 0a2446b

Browse files
author
Abhishek Bindra
committed
fix attribute filter
1 parent 18727aa commit 0a2446b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/utils/get-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function countSort(a, b) {
8383
function filterAttributes(at) {
8484
return (
8585
!ignoredAttributes.includes(at.name) &&
86-
/data-percy-/.test(at.name) &&
86+
!/data-percy-/.test(at.name) &&
8787
at.name.indexOf(':') === -1 &&
8888
(!at.value || at.value.length < MAXATTRIBUTELENGTH)
8989
);

0 commit comments

Comments
 (0)