diff --git a/files/helpers/const.py b/files/helpers/const.py index fca7f69e1..17d5a59de 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -148,8 +148,8 @@ if SITE_NAME == 'rDrama': PROFANITIES = { 'motherfucker': 'motherlover', - 'fuck': ['frick', 'fudge', 'freak'], - ' ass ': [' butt ', ' backside ', ' bum '], + 'fuck': 'frick', + ' ass ': ' butt ', 'shitting': 'pooping', 'lmao': 'lmbo', 'damn': 'darn', diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 32dfb5778..fc3c2a733 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -126,8 +126,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] - if not isinstance(repl, str): - repl = random.choice(repl) return repl if not upper or "