Omnifilter: empty content should always match, so the user does not need a .* regex when matching for other properties like object name only.

master
Zi Ree 2025-12-17 03:43:39 +01:00
parent 5bb91bbae2
commit 0261d751ba
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ const OmnifilterEngine::Needle* OmnifilterEngine::match(const Haystack& haystack
continue;
}
if (matchStrings(needle.mContent, haystack.mContent, needle.mContentMatchType, needle.mContentCaseInsensitive))
if (needle.mContent.empty() || matchStrings(needle.mContent, haystack.mContent, needle.mContentMatchType, needle.mContentCaseInsensitive))
{
return logMatch(needle_name, needle);
}