Skip to content

Commit

Permalink
Fix detection of matchers in silence creation
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Feb 27, 2022
1 parent c4ac4e6 commit 249a805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bot/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (c *Client) NewSilence(author, durationStr string, matchers string) string
}

// Check if an ID is given instead of matchers
if len(matchers) == 1 && !strings.ContainsAny(matchers, `=~`) {
if !strings.ContainsAny(matchers, `{"=~!}`) {
res := c.addSilenceForFingerprint(&silence, matchers)
if res != "" {
return res
Expand Down

0 comments on commit 249a805

Please sign in to comment.