hdkv
/
i2_bot
Archived
1
Fork 0

Float fix for pokememes wealth

master
Vladimir Hodakov 2017-12-06 14:43:05 +04:00
parent 2e42ccf011
commit 49fd750df9
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
}
if strings.HasPrefix(currentString, "🐱Покемемы: ") {
pkmnumRx := regexp.MustCompile(`(\d+)(\d|K|M|)`)
pkmnumRx := regexp.MustCompile(`(\d|\.|K|M)+`)
pkNumArray := pkmnumRx.FindAllString(currentString, -1)
if len(pkNumArray) < 3 {
c.Log.Error("Pokememes count broken")