diff --git a/files/helpers/const.py b/files/helpers/const.py index 503bbfe4b..43cffed20 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -130,6 +130,7 @@ PROFANITIES = { 'cum': ['c*m'], 'orgasm': ['sexual climax'], 'toilet': ['potty'], + 'rape': ['r*pe'], } if SITE_NAME == 'rDrama': diff --git a/files/helpers/regex.py b/files/helpers/regex.py index da24d7110..877734b6a 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -119,7 +119,7 @@ def sub_matcher(match, upper=False, replace_with:Union[dict[str, str], dict[str, if match.group(0).startswith('<'): return match.group(0) else: - repl = replace_with[match.group(0).lower()] + repl = replace_with[match.group(1).lower()] if not isinstance(repl, str): repl = random.choice(repl) return repl if not upper or "