mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 14:59:28 +00:00
feat(parser): relax host validation to support self-hosted GitLab & git.* domains (#314)
• Accept hosts starting with “git.” or “gitlab.” in _looks_like_git_host • Update doc-strings to document the heuristic • Adjust git-host-agnostic tests: expect ValueError for slug form with custom hosts; add real GitLab instance (git.rwth-aachen.de) to matrix
This commit is contained in:
parent
4ee598c406
commit
e5fadce158
4 changed files with 44 additions and 4 deletions
|
|
@ -24,6 +24,9 @@ URLS_HTTPS: List[str] = [
|
|||
"https://gitea.com/user/repo",
|
||||
"https://codeberg.org/user/repo",
|
||||
"https://gist.github.com/user/repo",
|
||||
"https://git.example.com/user/repo",
|
||||
"https://gitlab.example.com/user/repo",
|
||||
"https://gitlab.example.se/user/repo",
|
||||
]
|
||||
|
||||
URLS_HTTP: List[str] = [url.replace("https://", "http://") for url in URLS_HTTPS]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue