This commit is contained in:
2025-01-29 19:13:41 +01:00
parent 20d8d27f03
commit 3d6e1d2e94
+2
View File
@@ -16,6 +16,8 @@ def set_link_target_blank(text):
def linkify_https(text):
if not "https://" in text:
return text
url_pattern = r'(?<!["\'])\bhttps://[^\s<>()]+'
soup = BeautifulSoup(text, 'html.parser')