From bb1a7d0062a7f4e56bb91a4f4d1dc3bd7e36d97e Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 13 Nov 2021 10:52:54 +0800 Subject: [PATCH] fix typo --- .gitignore | 2 ++ bot.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6ef3ede --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +config.json +gottdad diff --git a/bot.go b/bot.go index b5d7f79..0c50fe8 100644 --- a/bot.go +++ b/bot.go @@ -475,7 +475,7 @@ func botQuery(q *tb.Query) { } func botText(m *tb.Message) { - r := regexp.MustCompile("^/delete_(?[a-f0-9]{16})$") + r := regexp.MustCompile("^/delete_(?P[a-f0-9]{16})$") if r.MatchString(m.Text) { ref := r.ReplaceAllString(m.Text, "${Ref}") d, ok := companyDeleteMap[ref]