From f3aeef70fcbb28b687bfb412d64101d0cbaf8931 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 2 Oct 2019 12:50:30 +0800 Subject: [PATCH] fix regexp for withdraw --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 75c0c94..3d7f9d0 100644 --- a/bot.go +++ b/bot.go @@ -729,7 +729,7 @@ func botGWithdraw(m *tb.Message) { Status: 0, } */ - r := regexp.MustCompile("^(( )*[a-z0-9]+ [0-9]+( )*)+$") + r := regexp.MustCompile("[a-z0-9]+ [0-9]+") for _, l := range r.FindAllStringSubmatch(m.Payload, -1) { fmt.Printf("%v\n", l) /*