From 4eef22692b088edf8d8baf10e3f5a09450c92efb Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 25 Sep 2023 01:32:31 +0300 Subject: [PATCH] fix :marseytrain: slur filter --- files/helpers/slurs_and_profanities.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/helpers/slurs_and_profanities.py b/files/helpers/slurs_and_profanities.py index 3422502ae..37cd3ef33 100644 --- a/files/helpers/slurs_and_profanities.py +++ b/files/helpers/slurs_and_profanities.py @@ -137,10 +137,11 @@ def sub_matcher(match, X_FOR_REPLACING): return match_str else: repl = X_FOR_REPLACING[match_str.lower()] - if match_str.isupper(): - return repl.upper() - if match_str.istitle(): - return repl.title() + if "