Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t32k committed Jan 17, 2016
1 parent 37b4f90 commit d34ef99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/analyzer.js
Expand Up @@ -104,16 +104,16 @@ Analyzer.prototype.analyzeSelectors = function () {

// if it contains # and dose not contain # in attribute selector
if (selector.indexOf('#') > -1) {
selector = selector.replace(/\[.+\]/g, '');
if (selector.indexOf('#') > -1) {
var id = selector.replace(/\[.+\]/g, '');
if (id.indexOf('#') > -1) {
result.idSelectors += 1;
}
}

// if it contains * and dose not contain * in attribute selector
if (selector.indexOf('*') > -1) {
selector = selector.replace(/\[.+\]/g, '');
if (selector.indexOf('*') > -1) {
var universal = selector.replace(/\[.+\]/g, '');
if (universal.indexOf('*') > -1) {
result.universalSelectors += 1;
}
}
Expand Down

0 comments on commit d34ef99

Please sign in to comment.