From 437380c2f6b6b4b04b0ac47aeea4b04f59534117 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 27 Jan 2020 12:32:37 +0800 Subject: [PATCH] test --- rules.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.go b/rules.go index d3e559f..8a888be 100644 --- a/rules.go +++ b/rules.go @@ -57,7 +57,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}$", regexp.QuoteMeta(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.Mainchat, SenderUserID64: 0, @@ -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}$", regexp.QuoteMeta(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,