diff --git a/output/crafting-mementos.json b/output/crafting-mementos.json index 2bec8c14..9b5af7d4 100644 --- a/output/crafting-mementos.json +++ b/output/crafting-mementos.json @@ -1,11 +1,11 @@ { "games": [18179099, 1429874803, 3617209212], "monolithic": [461727014, 1745945065, 3100848450], - "garden of salvation": [619391783, 1750913471, 2430770464], + "gardenofsalvation": [619391783, 1750913471, 2430770464], "solstice": [1257952519, 3481131423, 4160988416], "lost": [1261107326, 1971919313, 3686736741], "nightfall": [1425794805, 3254175265, 4240221838], - "iron banner": [1483496162, 1950948038, 3977496457], + "ironbanner": [1483496162, 1950948038, 3977496457], "trials": [2012491044, 3408716127, 3831031876], "gambit": [2140049750, 3060237106, 3088135833], "champion": [2519247511, 3346875528, 4049753919], diff --git a/src/generate-crafting-mementos.ts b/src/generate-crafting-mementos.ts index 45a24b8e..f162284a 100644 --- a/src/generate-crafting-mementos.ts +++ b/src/generate-crafting-mementos.ts @@ -14,7 +14,7 @@ for (const memento of inventoryItems.filter( (i) => i.plug?.plugCategoryHash === PlugCategoryHashes.Mementos, )) { const match = memento.displayProperties.name.match(mementoRegex); - const sourceName = match ? match[1].toLowerCase() : 'other'; + const sourceName = match ? match[1].toLowerCase().replace(/\s/g, '') : 'other'; (mementosBySource[sourceName] ??= []).push(memento.hash); }