fdsfds
This commit is contained in:
parent
e3137813c9
commit
13014aaea0
7 changed files with 62 additions and 5 deletions
|
@ -180,7 +180,7 @@ PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
|||
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
||||
|
||||
single_words = "|".join([slur.lower() for slur in SLURS.keys()])
|
||||
SLUR_REGEX = re.compile(rf"(?i)((?<=\s|>)|^)(nigger)((?=[\s<,.]|s[\s<,.])|$)")
|
||||
SLUR_REGEX = re.compile(rf"(?i)((?<=\s|>)|^)({single_words})((?=[\s<,.]|s[\s<,.])|$)")
|
||||
|
||||
def sub_matcher(match: re.Match) -> str:
|
||||
return SLURS[match.group(0).lower()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue