From cf359f5a9e7bdf7765b090a4a99d081347abba51 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 27 Jan 2020 12:30:01 +0800 Subject: [PATCH] update --- rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.go b/rules.go index 08716aa..92afbf4 100644 --- a/rules.go +++ b/rules.go @@ -66,7 +66,7 @@ func resetMsgParsingRules() error { r = MessageParsingRule{ Priority: 9998, Description: fmt.Sprintf("Specific item craft %s", o.Code), - Rule: fmt.Sprintf("^(?P%s)( (?P[0-9]+){0,1}$", o.Craft.Command), + Rule: fmt.Sprintf("^(?P%s)( (?P[0-9]+){0,1}$", regexp.QuoteMeta(o.Craft.Command)), MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`], ChatID64: cfg.Bot.Admin, SenderUserID64: cfg.Bot.Admin,