diff --git a/client/src/components/Form/SearchForm.vue b/client/src/components/Form/SearchForm.vue index 44f3ed4..6227856 100644 --- a/client/src/components/Form/SearchForm.vue +++ b/client/src/components/Form/SearchForm.vue @@ -148,7 +148,7 @@ export default { document.body.style.overflow = 'hidden' }, formSubmit() { - const search = this.summoner.split(' ').join('') + const search = this.summoner.split(' ').join('').replace('+', ' ') if (search.length) { this.$emit('formSubmit', search, this.selectedRegion) } diff --git a/server/app/Services/SummonerService.ts b/server/app/Services/SummonerService.ts index 02a3fdc..8cb7b9b 100644 --- a/server/app/Services/SummonerService.ts +++ b/server/app/Services/SummonerService.ts @@ -46,7 +46,7 @@ class SummonerService { * @param region */ public async getAccount (summonerName: string, region: string) { - const name = summonerName.toLowerCase().replace(/ /g, '') + const name = summonerName.toLowerCase() const account = await Jax.Summoner.summonerName(name, region) return account }