Skip to content

Commit

Permalink
verify-links: Ignore file:, ftp:, and ftps: links.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed May 19, 2022
1 parent 4fec382 commit 830a32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions link-verifier/verify-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

MARKDOWN_SEARCH_TERM = r'\.md$'
# Regex to find a URL
URL_SEARCH_TERM = r'(\b(https?|ftp|file)://[^\s\)\]\\"<>]+[^\s\)\.\]\\"<>])'
URL_SEARCH_TERM = r'(\b(https?)://[^\s\)\]\\"<>]+[^\s\)\.\]\\"<>])'
HTTP_URL_SEARCH_TERM = r'https?://'
# Some HTML tags that we choose to ignore
IGNORED_LINK_SCHEMES = r'mailto:|ftp:|tel:'
IGNORED_LINK_SCHEMES = r'mailto:|ftps?:|tel:|file:'
# Regexes to identify links to Github PRs or issues, which are very common in changelogs
# and may result in rate limiting if each link is fetched manually.
PULL_REQUEST_SEARCH = r'https://github.com/([A-Za-z0-9_.-]+)/([A-Za-z0-9_.-]+)/pull/(\d+)$'
Expand Down

0 comments on commit 830a32f

Please sign in to comment.