mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: be able to search summoners with 2 letters and a space
This commit is contained in:
parent
a2fdea3f17
commit
8d3c777c1b
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue