forked from rDrama/rDrama
1
0
Fork 0

minor slur filter improvement

master
Aevann 2023-09-29 04:39:16 +03:00
parent 0455ad4910
commit 10f4bf99ce
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ def sub_matcher(match, X_FOR_REPLACING):
if "<img" not in repl:
if match_str.isupper():
return repl.upper()
if match_str.istitle():
return repl.title()
if match_str[0].isupper():
return repl.capitalize()
return repl
def sub_matcher_slurs(match):