Skip to content

Commit

Permalink
Region splitting from game name
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv committed Sep 11, 2023
1 parent c65206a commit fb441dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/downloadSwitchTDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async (req, res) => {
const gameMap = {};

gameData.forEach((game) => {
const name = game.name.replace(/ \(EN\)$/, '');
const name = game.name.replace(/\s*\([^)]*\)\s*/, '');
const id = game.id;
if (!gameMap[name]) {
gameMap[name] = [];
Expand Down

0 comments on commit fb441dc

Please sign in to comment.