Ignore empty lines in spam filter.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-01-29 04:07:00 +01:00
parent 60d89e775d
commit c22dc4fcab
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}