forked from retoor/snek
Update.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user