diff --git a/pkg/labels/parse_test.go b/pkg/labels/parse_test.go index b3a4c889..b4b1d631 100644 --- a/pkg/labels/parse_test.go +++ b/pkg/labels/parse_test.go @@ -282,6 +282,22 @@ func TestMatchers(t *testing.T) { return append(ms, m1, m2) }(), }, + { + input: `{foo=bar\t}`, + want: func() []*Matcher { + ms := []*Matcher{} + m, _ := NewMatcher(MatchEqual, "foo", "bar\\t") + return append(ms, m) + }(), + }, + { + input: `{foo=bar\n}`, + want: func() []*Matcher { + ms := []*Matcher{} + m, _ := NewMatcher(MatchEqual, "foo", "bar\n") + return append(ms, m) + }(), + }, { input: `job=`, want: func() []*Matcher {