Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
8650f7f9
Unverified
Commit
8650f7f9
authored
Jan 12, 2022
by
Matheus Felipe
Browse files
Make sure the link contains ://
parent
95ee7981
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/links.py
View file @
8650f7f9
...
...
@@ -73,7 +73,7 @@ def fake_user_agent() -> str:
def
get_host_from_link
(
link
:
str
)
->
str
:
host
=
link
.
split
(
'://'
,
1
)[
1
]
host
=
link
.
split
(
'://'
,
1
)[
1
]
if
'://'
in
link
else
link
# Remove routes, arguments and anchors
if
'/'
in
host
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment