fix regexp for withdraw
This commit is contained in:
parent
c2ae7baa56
commit
f3aeef70fc
2
bot.go
2
bot.go
@ -729,7 +729,7 @@ func botGWithdraw(m *tb.Message) {
|
|||||||
Status: 0,
|
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) {
|
for _, l := range r.FindAllStringSubmatch(m.Payload, -1) {
|
||||||
fmt.Printf("%v\n", l)
|
fmt.Printf("%v\n", l)
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user