Skip to content

Commit

Permalink
Fix quotes in areas (#609)
Browse files Browse the repository at this point in the history
Co-authored-by: James Berry <[email protected]>
  • Loading branch information
jfberry and jfberry authored Nov 11, 2021
1 parent 2027ebb commit e7f4494
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/controllers/gym.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Gym extends Controller {
tths: data.tth.seconds,
now: new Date(),
nowISO: new Date().toISOString(),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'gym'
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/monster.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ class Monster extends Controller {
now: new Date(),
nowISO: new Date().toISOString(),
pvpUserRanking: cares.pvp_ranking_worst === 4096 ? 0 : cares.pvp_ranking_worst,
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
pvpDisplayMaxRank: this.config.pvp.pvpDisplayMaxRank,
pvpDisplayGreatMinCP: this.config.pvp.pvpDisplayGreatMinCP,
pvpDisplayUltraMinCP: this.config.pvp.pvpDisplayUltraMinCP,
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/nest.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class Nest extends Controller {
tths: data.tth.seconds,
now: new Date(),
nowISO: new Date().toISOString(),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'nest'
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/pokestop.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class Invasion extends Controller {
name: translator.translate(data.genderDataEng.name),
emoji: translator.translate(this.emojiLookup.lookup(data.genderDataEng.emoji, platform)),
} : { name: '', emoji: '' },
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'invasion'
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/pokestop_lure.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class Lure extends Controller {
tths: data.tth.seconds,
now: new Date(),
nowISO: new Date().toISOString(),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'lure'
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/quest.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class Quest extends Controller {
confirmedTime: data.disappear_time_verified,
now: new Date(),
nowISO: new Date().toISOString(),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'quest'
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/raid.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class Raid extends Controller {
now: new Date(),
nowISO: new Date().toISOString(),
genderData: { name: translator.translate(data.genderDataEng.name), emoji: translator.translate(this.emojiLookup.lookup(data.genderDataEng.emoji, platform)) },
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'raid'
Expand Down Expand Up @@ -412,7 +412,7 @@ class Raid extends Controller {
confirmedTime: data.disappear_time_verified,
now: new Date(),
nowISO: new Date().toISOString(),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
}

const templateType = 'egg'
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class Weather extends Controller {
...data,
...geoResult,
id: data.s2_cell_id,
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name.replace(/'/gi, '')).join(', '),
areas: data.matchedAreas.filter((area) => area.displayInMatches).map((area) => area.name).join(', '),
now: new Date(),
nowISO: new Date().toISOString(),
}
Expand Down

0 comments on commit e7f4494

Please sign in to comment.