Skip to content

Commit

Permalink
Fix name split
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv authored Oct 14, 2023
1 parent 2cbdaa9 commit bfe8717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils/downloadSwitchTDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function downloadSwitchTDB() {
const gameMap = {};

gameData.forEach((game) => {
const name = game.$.name.replace(/ \(EN\)$/, '');
const name = game.$.name.split(/ \(/)[0];
const { id } = game;
if (!gameMap[name]) {
gameMap[name] = [];
Expand All @@ -51,4 +51,4 @@ export async function downloadSwitchTDB() {
);

return null;
}
}

0 comments on commit bfe8717

Please sign in to comment.