From aea6b36ceacace3b39f7959d56f958c07b0e872b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Jul 2022 14:20:03 +0100 Subject: [PATCH] Also detect titled words --- blocking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocking.py b/blocking.py index 625bc94c1..30382a03d 100644 --- a/blocking.py +++ b/blocking.py @@ -1087,7 +1087,7 @@ def add_cw_from_lists(post_json_object: {}, cw_lists: {}, translate: {}, # match words within the content if item.get('words'): for word_str in item['words']: - if word_str in content: + if word_str in content or word_str.title() in content: if cw_text: cw_text = warning + ' / ' + cw_text else: