Revert "Revert "sneed" (this is supposed to be like this)"
This reverts commit 5e773f9e75
.
pull/2/head
parent
3fe1d196f1
commit
2b81c4b03c
|
@ -148,8 +148,8 @@ if SITE_NAME == 'rDrama':
|
||||||
|
|
||||||
PROFANITIES = {
|
PROFANITIES = {
|
||||||
'motherfucker': 'motherlover',
|
'motherfucker': 'motherlover',
|
||||||
'fuck': ['frick', 'fudge', 'freak'],
|
'fuck': 'frick',
|
||||||
' ass ': [' butt ', ' backside ', ' bum '],
|
' ass ': ' butt ',
|
||||||
'shitting': 'pooping',
|
'shitting': 'pooping',
|
||||||
'lmao': 'lmbo',
|
'lmao': 'lmbo',
|
||||||
'damn': 'darn',
|
'damn': 'darn',
|
||||||
|
|
|
@ -126,8 +126,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str],
|
||||||
return match_str
|
return match_str
|
||||||
else:
|
else:
|
||||||
repl = replace_with[match_str.lower()]
|
repl = replace_with[match_str.lower()]
|
||||||
if not isinstance(repl, str):
|
|
||||||
repl = random.choice(repl)
|
|
||||||
return repl if not upper or "<img" in repl else repl.upper()
|
return repl if not upper or "<img" in repl else repl.upper()
|
||||||
|
|
||||||
def sub_matcher_upper(match, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):
|
def sub_matcher_upper(match, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):
|
||||||
|
|
Loading…
Reference in New Issue