From a3678854dff0d060706cb23f20dd1bdd2b5b6645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sdvdxl=E6=9D=9C=E9=BE=99=E5=B0=91?= Date: Wed, 11 Sep 2019 09:52:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20lookup(#3,5)=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sdvdxl杜龙少 --- util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/util.go b/util/util.go index 266c5c9..e7e976a 100644 --- a/util/util.go +++ b/util/util.go @@ -46,7 +46,7 @@ func HandleContent(content string) (*config.AlarmMessage, error) { // 描述和条件 argStr := args[4] - p := regexp.MustCompile(`\w+\(#(\d+)\)`) + p := regexp.MustCompile(`\w+\(#(\d+)(,+\d+)?\)`) // 表达式 expression := p.FindString(argStr)