master
Aevann1 2021-10-10 07:57:08 +02:00
parent 060b1734bc
commit 940e47370e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def sanitize(sanitized, noimages=False):
print('\n\n')
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
sanitized = re.sub("</blockquote>$", "</blockquote><pre></pre>", sanitized)
sanitized = re.sub("^</blockquote>", "<pre></pre></blockquote>", sanitized)
sanitized = re.sub("^<blockquote>", "<pre></pre><blockquote>", sanitized)
print(sanitized)
for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):