fds
This commit is contained in:
parent
8818fde5a7
commit
744c4ab97f
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ single_words = "|".join([slur.lower() for slur in SLURS.keys()])
|
|||
SLUR_REGEX = re.compile(rf"(?i)(?<=\s|>)({single_words})(?=[\s<,.])")
|
||||
|
||||
def sub_matcher(match: re.Match) -> str:
|
||||
return SLURS[match.group(0)]
|
||||
return SLURS[match.group(0).lower()]
|
||||
|
||||
def censor_slurs(body: str, logged_user) -> str:
|
||||
if not logged_user or logged_user.slurreplacer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue