Ignore empty lines in spam filter.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
60d89e775d
commit
c22dc4fcab
|
@ -232,7 +232,7 @@ bool is_spam(const entry_type &entry)
|
|||
string line;
|
||||
while (getline(file, line))
|
||||
{
|
||||
if (regex_search(entry.description, regex{line}))
|
||||
if (!line.empty() && regex_search(entry.description, regex{line}))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Reference in New Issue