From 76fbf964a8598322df94270286212ce08f08bcea Mon Sep 17 00:00:00 2001 From: Sylvia Crowe Date: Sun, 27 Oct 2024 15:49:18 -0700 Subject: [PATCH] fix: match directive bypass for GetAll The new ignoreMatchDirective flag needed to be added in one other place. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 3473194..533b460 100644 --- a/config.go +++ b/config.go @@ -457,7 +457,7 @@ func (c *Config) GetAll(alias, key string) ([]string, error) { case *KV: // "keys are case insensitive" per the spec lkey := strings.ToLower(t.Key) - if lkey == "match" { + if lkey == "match" && !c.ignoreMatchDirective { panic("can't handle Match directives") } if lkey == lowerKey {