Filter: exact match takes precedence over wildcard (fixes #1628)

This commit is contained in:
Benoit Blanchon
2021-08-13 10:35:04 +02:00
parent f570fe8c37
commit 2c3ae1c181
3 changed files with 12 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class Filter {
Filter operator[](const TKey& key) const {
if (_variant == true) // "true" means "allow recursively"
return *this;
else
return Filter(_variant[key] | _variant["*"]);
VariantConstRef member = _variant[key];
return Filter(member.isNull() ? _variant["*"] : member);
}
private: