mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-17 11:07:05 +00:00
Fix extended printing of regex sign (#2445)
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
This commit is contained in:
parent
8ebd888488
commit
e6824a3110
@ -139,7 +139,7 @@ func extendedFormatMatchers(matchers models.Matchers) string {
|
|||||||
|
|
||||||
func extendedFormatMatcher(matcher models.Matcher) string {
|
func extendedFormatMatcher(matcher models.Matcher) string {
|
||||||
if *matcher.IsRegex {
|
if *matcher.IsRegex {
|
||||||
return fmt.Sprintf("%s~=%s", *matcher.Name, *matcher.Value)
|
return fmt.Sprintf("%s=~%s", *matcher.Name, *matcher.Value)
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("%s=%s", *matcher.Name, *matcher.Value)
|
return fmt.Sprintf("%s=%s", *matcher.Name, *matcher.Value)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user