Archived
1

Float fix for pokememes wealth

This commit is contained in:
Vladimir Hodakov 2017-12-06 14:43:05 +04:00
parent 2e42ccf011
commit 49fd750df9

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")