From 74e7464f54a6ce69549c0f81f565202ed83aab9b Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 14 Mar 2023 10:08:50 +0200 Subject: [PATCH] fix image links getting broken --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 537f729d3..0f502af61 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -354,7 +354,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized) sanitized = greentext_regex.sub(r'\1\>\2', sanitized) - sanitized = image_regex.sub(r'\1![](\2)\7', sanitized) + sanitized = image_regex.sub(r'\1![](\2) \7', sanitized) sanitized = image_check_regex.sub(r'\1', sanitized) sanitized = link_fix_regex.sub(r'\1https://\2', sanitized)