Skip to content

Commit

Permalink
fix lookup(#3,5) 格式解析错误
Browse files Browse the repository at this point in the history
Signed-off-by: sdvdxl杜龙少 <[email protected]>
  • Loading branch information
sdvdxl committed Sep 11, 2019
1 parent e51df1a commit a367885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a367885

Please sign in to comment.