diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index 1445e9c5bb..5c3474e9ce 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -227,7 +227,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
if remoji == 'marseyrandom': remoji = choice(marseys)
if path.isfile(f'files/assets/images/emojis/{remoji}.webp'):
- new = re.sub(f'(?', new, flags=re.I)
+ new = re.sub(f'(?', new, flags=re.I)
if comment: marseys_used.add(emoji)
sanitized = sanitized.replace(old, new)
@@ -251,7 +251,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
else: emoji = old
if path.isfile(f'files/assets/images/emojis/{emoji}.webp'):
- sanitized = re.sub(f'(?', sanitized, flags=re.I)
+ sanitized = re.sub(f'(?', sanitized, flags=re.I)
if comment: marseys_used.add(emoji)
else:
classes = 'emoji'
@@ -262,7 +262,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
else: emoji = old
if path.isfile(f'files/assets/images/emojis/{emoji}.webp'):
- sanitized = re.sub(f'(?', sanitized, flags=re.I)
+ sanitized = re.sub(f'(?', sanitized, flags=re.I)
if comment: marseys_used.add(emoji)
sanitized = sanitized.replace("https://youtu.be/", "https://youtube.com/watch?v=").replace("https://music.youtube.com/watch?v=", "https://youtube.com/watch?v=").replace("https://streamable.com/", "https://streamable.com/e/").replace("https://youtube.com/shorts/", "https://youtube.com/watch?v=").replace("https://mobile.twitter", "https://twitter").replace("https://m.facebook", "https://facebook").replace("m.wikipedia.org", "wikipedia.org").replace("https://m.youtube", "https://youtube").replace("https://www.youtube", "https://youtube")
@@ -339,7 +339,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
else: emoji = old
if path.isfile(f'files/assets/images/emojis/{emoji}.webp'):
- title = re.sub(f'(?', title, flags=re.I)
+ title = re.sub(f'(?', title, flags=re.I)
else:
classes = 'emoji'
@@ -350,7 +350,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
else: emoji = old
if path.isfile(f'files/assets/images/emojis/{emoji}.webp'):
- title = re.sub(f'(?', title, flags=re.I)
+ title = re.sub(f'(?', title, flags=re.I)
title = re.sub('~~(.*?)~~', r'\1', title)
diff --git a/files/templates/formatting.html b/files/templates/formatting.html
index 1cad5c7283..8b0f438d1d 100644
--- a/files/templates/formatting.html
+++ b/files/templates/formatting.html
@@ -69,22 +69,22 @@ You can use Markdown formatting: