Revert "fixed 500"

This reverts commit ee4c534a92.
master
Aevann1 2022-11-07 08:09:04 +02:00
parent ce6998bd6e
commit 9b939b30a4
1 changed files with 0 additions and 2 deletions

View File

@ -123,8 +123,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 "<img" in repl else repl.upper()
def sub_matcher_upper(match, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):