This commit is contained in:
shoopea 2021-11-13 10:47:54 +08:00
parent d4a7d2fd82
commit 7bd6916eb8

2
bot.go
View File

@ -475,7 +475,7 @@ func botQuery(q *tb.Query) {
}
func botText(m *tb.Message) {
r := regexp.MustCompile("^/delete_(??<Ref>[a-f0-9]{16})$")
r := regexp.MustCompile("^/delete_(?<Ref>[a-f0-9]{16})$")
if r.MatchString(m.Text) {
ref := r.ReplaceAllString(m.Text, "${Ref}")
d, ok := companyDeleteMap[ref]