fix vualt item
This commit is contained in:
parent
85ebe5e825
commit
5e2ce7e747
2
bot.go
2
bot.go
@ -787,7 +787,7 @@ func botVaultItem(m *tb.Message) {
|
||||
UserID64: int64(m.Sender.ID),
|
||||
}
|
||||
|
||||
r := regexp.MustCompile("([a-z][0-9]{2}[a-e]{0,1})")
|
||||
r := regexp.MustCompile("([a-z][0-9]{2}[a-e]{0,1}|([0-9]{2}))")
|
||||
for _, l := range r.FindAllStringSubmatch(m.Payload, -1) {
|
||||
item := getObjItemID(l[1], ``)
|
||||
if item != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user