Skip to content

Commit

Permalink
Skip mailto: links
Browse files Browse the repository at this point in the history
  • Loading branch information
spugachev committed Feb 22, 2024
1 parent d73f057 commit 75bb7bd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def parse_url(url: str):

for idx in range(len(links)):
link = links[idx]
lowercase_link = link.lower().strip()
if lowercase_link.startswith("mailto:"):
continue

current = urlparse(link)
if not current.netloc:
local_links.append(f"{base_url}{link}")
Expand Down

0 comments on commit 75bb7bd

Please sign in to comment.