stop image_regex from eating spaes after image

master
Aevann 2023-03-14 09:09:25 +02:00
parent 825d249cb6
commit 6583ee9b91
1 changed files with 1 additions and 1 deletions

View File

@ -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 = linefeeds_regex.sub(r'\1\n\n\2', sanitized)
sanitized = greentext_regex.sub(r'\1<g>\>\2</g>', sanitized) sanitized = greentext_regex.sub(r'\1<g>\>\2</g>', sanitized)
sanitized = image_regex.sub(r'\1![](\2)', sanitized) sanitized = image_regex.sub(r'\1![](\2)\7', sanitized)
sanitized = image_check_regex.sub(r'\1', sanitized) sanitized = image_check_regex.sub(r'\1', sanitized)
sanitized = link_fix_regex.sub(r'\1https://\2', sanitized) sanitized = link_fix_regex.sub(r'\1https://\2', sanitized)