mirror of
https://github.com/techgaun/active-forks.git
synced 2024-12-22 13:32:14 +01:00
repo names have the domain preprended, added replace to remove it b4 the fetch
This commit is contained in:
parent
ccea7c3df7
commit
d19f6ffcbe
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ function fetchAndShow(repo) {
|
|||
repo = repo.replace('https://github.com/', '');
|
||||
repo = repo.replace('http://github.com/', '');
|
||||
repo = repo.replace('.git', '');
|
||||
repo = repo.replace(/^github.com\//, '');
|
||||
|
||||
fetch(
|
||||
`https://api.github.com/repos/${repo}/forks?sort=stargazers&per_page=100`
|
||||
|
|
Loading…
Reference in a new issue