forked from MarseyWorld/MarseyWorld
dont replace "cool it" with "fetch it"
parent
0ab0b9cbe6
commit
61202cb5aa
|
@ -189,10 +189,9 @@ if SITE_NAME == 'rDrama':
|
|||
"my brother in christ": "my brother in Allah",
|
||||
"kyle": "Kylie",
|
||||
"twitter files": 'twitter files <img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">',
|
||||
" cool ": " fetch ",
|
||||
" cool (?!it)": " fetch ",
|
||||
"krayon": "krayon (sister toucher)",
|
||||
"discord": "groomercord",
|
||||
|
||||
}
|
||||
SLURS.update(RDRAMA_SLURS)
|
||||
|
||||
|
|
|
@ -124,6 +124,8 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str],
|
|||
match_str = match.group(group_num)
|
||||
if match_str.startswith('<'):
|
||||
return match_str
|
||||
elif match_str.lower() == ' cool ':
|
||||
return ' fetch '
|
||||
else:
|
||||
repl = replace_with[match_str.lower()]
|
||||
return repl if not upper or "<img" in repl else repl.upper()
|
||||
|
|
Loading…
Reference in New Issue