fix typo
This commit is contained in:
parent
d4a7d2fd82
commit
7bd6916eb8
2
bot.go
2
bot.go
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user