From ad6eafa05ec404887a2398a2854e21db9775a442 Mon Sep 17 00:00:00 2001 From: Amber Date: Sun, 27 Mar 2022 12:17:49 -0500 Subject: [PATCH] Filtering is now case insensitive --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index 8fbcc22..17fd963 100755 --- a/functions.py +++ b/functions.py @@ -62,7 +62,7 @@ def make_sentence(output, cfg): fp = open('./filter.txt') for word in fp: word = re.sub("\n", "", word) - if word in sentence: + if word.lower() in sentence: sentence="" finally: