This commit is contained in:
Guillem Hernandez Sola
2026-05-11 12:50:49 +02:00
parent 124a1c5169
commit a898d66fe7

View File

@@ -916,7 +916,7 @@ def sanitize_visible_urls_in_text(text, http_client, has_media=False):
return text, None
working = clean_post_text(text)
url_pattern = r'(?:(?:https?://)|(?:www\.))[^\s<>"\'']+'
url_pattern = r'(?:(?:https?://)|(?:www\.))[^\s<>"\']+'
urls = re.findall(url_pattern, working)
if not urls: