forked from rDrama/rDrama
minor slur filter improvement
parent
0455ad4910
commit
10f4bf99ce
|
@ -134,8 +134,8 @@ def sub_matcher(match, X_FOR_REPLACING):
|
||||||
if "<img" not in repl:
|
if "<img" not in repl:
|
||||||
if match_str.isupper():
|
if match_str.isupper():
|
||||||
return repl.upper()
|
return repl.upper()
|
||||||
if match_str.istitle():
|
if match_str[0].isupper():
|
||||||
return repl.title()
|
return repl.capitalize()
|
||||||
return repl
|
return repl
|
||||||
|
|
||||||
def sub_matcher_slurs(match):
|
def sub_matcher_slurs(match):
|
||||||
|
|
Loading…
Reference in New Issue