diff --git a/website/chat.py b/website/chat.py index 5069100..697c145 100644 --- a/website/chat.py +++ b/website/chat.py @@ -142,7 +142,7 @@ def _comment(text, token, c_response, c_ciphertext, nonce): word = escape(word) # escape for html word = re.escape(word) # escape for regex regex = r'\b{}\b'.format(word) - markup, n = re.subn(regex, '[CENSORED]', markup) + markup, n = re.subn(regex, '[CENSORED]', markup, flags=re.IGNORECASE) if n: reaction = key # enact consequences of word filters note = N_NONE