Filtering is now case insensitive #2

Merged
amber merged 1 commits from dev into master 2022-03-27 17:20:10 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ad6eafa05e - Show all commits

View File

@ -62,7 +62,7 @@ def make_sentence(output, cfg):
fp = open('./filter.txt') fp = open('./filter.txt')
for word in fp: for word in fp:
word = re.sub("\n", "", word) word = re.sub("\n", "", word)
if word in sentence: if word.lower() in sentence:
sentence="" sentence=""
finally: finally: