Skip to content

Commit

Permalink
since we need to bump for Travis to run again, condense a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
machenmusik committed Mar 23, 2018
1 parent b75a711 commit bd13d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/tracked-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ function findMatchingController (controllers, filterIdExact, filterIdPrefix, fil
var matches = false;
for (var j = 0; j < filterIdPrefixes.length; j++) {
var prefix = filterIdPrefixes[j];
if (prefix && controller.id.indexOf(prefix) === 0) {
if (prefix && !controller.id.indexOf(prefix)) {
matches = true;
break;
}
}
if (!matches) { continue; }
} else
if (filterIdPrefix && controller.id.indexOf(filterIdPrefix) !== 0) { continue; }
if (filterIdPrefix && controller.id.indexOf(filterIdPrefix)) { continue; }
if (!filterIdPrefix && controller.id !== filterIdExact) { continue; }

// If the hand filter and controller handedness are defined we compare them.
Expand Down

0 comments on commit bd13d1b

Please sign in to comment.