fix: match directive bypass for GetAll

The new ignoreMatchDirective flag needed to be added in one other place.
This commit is contained in:
Sylvia Crowe
2024-10-27 15:49:18 -07:00
parent 46cd93734b
commit 76fbf964a8
+1 -1
View File
@@ -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 {