Float fix for pokememes wealth
This commit is contained in:
parent
2e42ccf011
commit
49fd750df9
@ -155,7 +155,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(currentString, "🐱Покемемы: ") {
|
if strings.HasPrefix(currentString, "🐱Покемемы: ") {
|
||||||
pkmnumRx := regexp.MustCompile(`(\d+)(\d|K|M|)`)
|
pkmnumRx := regexp.MustCompile(`(\d|\.|K|M)+`)
|
||||||
pkNumArray := pkmnumRx.FindAllString(currentString, -1)
|
pkNumArray := pkmnumRx.FindAllString(currentString, -1)
|
||||||
if len(pkNumArray) < 3 {
|
if len(pkNumArray) < 3 {
|
||||||
c.Log.Error("Pokememes count broken")
|
c.Log.Error("Pokememes count broken")
|
||||||
|
Reference in New Issue
Block a user