fix regexp for withdraw

This commit is contained in:
shoopea 2019-10-02 12:50:30 +08:00
parent c2ae7baa56
commit f3aeef70fc

2
bot.go
View File

@ -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)
/*