Bläddra i källkod

fixed invalid method call

Gildas 7 år sedan
förälder
incheckning
14eacfd4a5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lib/single-file/css-rules-matcher.js

+ 1 - 1
lib/single-file/css-rules-matcher.js

@@ -114,7 +114,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
 				specificity.sheetIndex = sheetIndex;
 				let ruleInfo = elementInfo.find(ruleInfo => ruleInfo.cssRule == cssRule);
 				if (ruleInfo) {
-					if (!IGNORED_PSEUDO_CLASSES.find(pseudoClass => selectorText.find(pseudoClass)) && compareSpecificity(ruleInfo.specificity, specificity) == 1) {
+					if (!IGNORED_PSEUDO_CLASSES.find(pseudoClass => selectorText.includes(pseudoClass)) && compareSpecificity(ruleInfo.specificity, specificity) == 1) {
 						ruleInfo.specificity = specificity;
 						ruleInfo.selectorText = selectorText;
 					}