Skip to content

Commit c72e494

Browse files
committed
Add url urlutils
1 parent 4915fe1 commit c72e494

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/url.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def normalize(url: str) -> str:
2+
"""
3+
removes // from url
4+
:param url: string
5+
:return: string
6+
"""
7+
return url.replace('//', 'https://')

0 commit comments

Comments
 (0)