Skip to content

Commit abe97a9

Browse files
author
David B
committed
fix errors
1 parent b028e4a commit abe97a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/filter-helpers.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ function getCurrentGameInfo(searchPattern, gamesInfos) {
5959
for (let i = 0; i < gamesInfos.length; i++) {
6060
const gameInfos = gamesInfos[i];
6161
if (gameInfos.serial) {
62-
const regexp = new RegExp(sanitizeSerial(gameInfos.serial));
63-
if (regexp.test(searchPattern.toLowerCase())) {
64-
return gameInfos;
62+
if (!/\?\?\?\?\?/.test(gameInfos.serial)) {
63+
const regexp = new RegExp(sanitizeSerial(gameInfos.serial));
64+
if (regexp.test(searchPattern.toLowerCase())) {
65+
return gameInfos;
66+
}
6567
}
6668
}
6769
}

0 commit comments

Comments
 (0)