More changes to swich from regexes to patterns.

This commit is contained in:
Mark Stemm
2019-07-29 11:47:12 -07:00
parent e01d3d68a3
commit 2475b0f155
3 changed files with 12 additions and 11 deletions

View File

@@ -213,7 +213,7 @@ void falco_ruleset::enable(const string &substring, bool enabled, uint16_t rules
{
bool matches;
matches = (val.first.find(substring) != string::npos);
matches = (substring == "" || (val.first.find(substring) != string::npos));
if (matches)
{