mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Updated the get_domain_hyperlinks function to include handling of tel: links in addition to mailto: links, to exclude them from the clean links list.
This commit is contained in:
parent
1deea48511
commit
ee9b6268d4
@ -87,7 +87,11 @@ def get_domain_hyperlinks(local_domain, url):
|
|||||||
else:
|
else:
|
||||||
if link.startswith("/"):
|
if link.startswith("/"):
|
||||||
link = link[1:]
|
link = link[1:]
|
||||||
elif link.startswith("#") or link.startswith("mailto:"):
|
elif (
|
||||||
|
link.startswith("#")
|
||||||
|
or link.startswith("mailto:")
|
||||||
|
or link.startswith("tel:")
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
clean_link = "https://" + local_domain + "/" + link
|
clean_link = "https://" + local_domain + "/" + link
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user