Skip to content

Commit

Permalink
Fix dumb regression
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Oct 25, 2021
1 parent 57da8d3 commit 2ef220d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/parsers/steam.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class SteamParser implements GenericParser {
throw this.lang.errors.steamChanged__i.interpolate({error: errordata.error, file: errordata.path});
})
.then((appinfo)=>{
return Promise.all(appIds.map(appId =>{
return Promise.all(appIds.filter(appId => /^[0-9]*$/g.test(appId)).map(appId =>{
let infoIndex = appinfo.map((app: any)=>app.entries.appid).indexOf(parseInt(appId));
if(infoIndex>=0 && (appinfo[infoIndex].entries.common||{}).name){
return Promise.resolve({title: (appinfo[infoIndex].entries.common||{}).name, appid: appId});
Expand Down

0 comments on commit 2ef220d

Please sign in to comment.