diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 630bca71e2..dc2a127055 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -219,7 +219,7 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('
:([^ ]{1,30}?):
', sanitized): emoji = i.group(1).lower() - if path.isfile(f'./files/assets/images/emojis/{emoji}.gif'): + if path.isfile(f'./files/assets/images/emojis/{emoji}.gif'): sanitized = sanitized.replace(f':{emoji}:
', f'')
try:
@@ -230,7 +230,7 @@ def sanitize(sanitized, noimages=False):
for i in re.finditer(':([^ ]{1,30}?):', sanitized):
emoji = i.group(1).lower()
- if path.isfile(f'./files/assets/images/emojis/{emoji}.gif'):
+ if path.isfile(f'./files/assets/images/emojis/{emoji}.gif'):
sanitized = sanitized.replace(f':{emoji}:', f'
')
try: