From 49fd750df95e313e929edf3c94b555ea0c3694d8 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Wed, 6 Dec 2017 14:43:05 +0400 Subject: [PATCH] Float fix for pokememes wealth --- lib/users/parsers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/users/parsers.go b/lib/users/parsers.go index 0639c2e..b181fe9 100644 --- a/lib/users/parsers.go +++ b/lib/users/parsers.go @@ -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")