Ensure string matching on the ignore filter is always case-INsensitive

This commit is contained in:
dgtlmoon
2022-02-23 12:01:11 +01:00
parent 014fda9058
commit b401998030
2 changed files with 4 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ def strip_ignore_text(content, wordlist, mode="content"):
except Exception as e:
continue
if not regex_matches and not any(skip_text in line for skip_text in ignore):
if not regex_matches and not any(skip_text.lower() in line.lower() for skip_text in ignore):
output.append(line.encode('utf8'))
else:
ignored_line_numbers.append(i)