Also detect titled words

main
Bob Mottram 2022-07-18 14:20:03 +01:00
parent 51f6e05d23
commit aea6b36cea
1 changed files with 1 additions and 1 deletions

View File

@ -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: