Omnifilter: empty content should always match, so the user does not need a .* regex when matching for other properties like object name only.
parent
5bb91bbae2
commit
0261d751ba
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue