Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
David B committed Jun 2, 2019
1 parent b028e4a commit abe97a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/filter-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ function getCurrentGameInfo(searchPattern, gamesInfos) {
for (let i = 0; i < gamesInfos.length; i++) {
const gameInfos = gamesInfos[i];
if (gameInfos.serial) {
const regexp = new RegExp(sanitizeSerial(gameInfos.serial));
if (regexp.test(searchPattern.toLowerCase())) {
return gameInfos;
if (!/\?\?\?\?\?/.test(gameInfos.serial)) {
const regexp = new RegExp(sanitizeSerial(gameInfos.serial));
if (regexp.test(searchPattern.toLowerCase())) {
return gameInfos;
}
}
}
}
Expand Down

0 comments on commit abe97a9

Please sign in to comment.