Update Git-MRI.py
This commit is contained in:
parent
7ec01a2f40
commit
4c36296b5b
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ from urllib.parse import urlparse
|
||||||
|
|
||||||
TEXT_EXTENSIONS = {'.md', '.markdown', '.txt', '.rst', '.adoc', '.html'}
|
TEXT_EXTENSIONS = {'.md', '.markdown', '.txt', '.rst', '.adoc', '.html'}
|
||||||
IMAGE_EXTENSIONS = {'.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg'}
|
IMAGE_EXTENSIONS = {'.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg'}
|
||||||
LOG_FILENAME = "non_images.log"
|
LOG_FILENAME = "no_images.log"
|
||||||
|
|
||||||
def get_repo_name_from_url(repo_url):
|
def get_repo_name_from_url(repo_url):
|
||||||
return os.path.splitext(os.path.basename(urlparse(repo_url).path))[0]
|
return os.path.splitext(os.path.basename(urlparse(repo_url).path))[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue