From d3a15a81506e996beb8d80a126a64fcb41e9e90e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 2 Sep 2021 00:38:12 +0200 Subject: [PATCH] df --- 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 79ef59794..26515bb43 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -241,7 +241,7 @@ def sanitize(sanitized, noimages=False): for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]: sanitized = sanitized.replace(rd, "https://old.reddit.com/") - sanitized = re.sub('([^">=])(https:\/\/[^ <>]*)', r'\1\2', sanitized) + sanitized = re.sub(' (https:\/\/[^ <>]*)', r' \1', sanitized) sanitized = re.sub('

(https:\/\/[^ <>]*)', r'

\1', sanitized) return sanitized