From af525b207f164a858928e7448f42e16a6159da15 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sun, 1 Apr 2018 17:51:38 +0400 Subject: [PATCH] Fix bot failure on profile update --- lib/users/parsers.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/users/parsers.go b/lib/users/parsers.go index f48b910..ed2b6ad 100644 --- a/lib/users/parsers.go +++ b/lib/users/parsers.go @@ -183,7 +183,6 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe } pkName := strings.Split(pokememeString, "+")[0] pkName = strings.Replace(pkName, " ⭐", "", 1) - pkName = strings.TrimSuffix(pkName, " ") if strings.Contains(pkName, "🔟") { pkName = strings.Split(pkName, "🔟 ")[1] } else {