forked from rDrama/rDrama
fix :marseytrain: slur filter
parent
afb70ab2ab
commit
4eef22692b
|
@ -137,10 +137,11 @@ def sub_matcher(match, X_FOR_REPLACING):
|
||||||
return match_str
|
return match_str
|
||||||
else:
|
else:
|
||||||
repl = X_FOR_REPLACING[match_str.lower()]
|
repl = X_FOR_REPLACING[match_str.lower()]
|
||||||
if match_str.isupper():
|
if "<img" not in repl:
|
||||||
return repl.upper()
|
if match_str.isupper():
|
||||||
if match_str.istitle():
|
return repl.upper()
|
||||||
return repl.title()
|
if match_str.istitle():
|
||||||
|
return repl.title()
|
||||||
return repl
|
return repl
|
||||||
|
|
||||||
def sub_matcher_slurs(match):
|
def sub_matcher_slurs(match):
|
||||||
|
|
Loading…
Reference in New Issue