mirror of
https://github.com/techgaun/active-forks.git
synced 2024-11-16 09:08:32 +01:00
Merge pull request #40 from rabinshrestha/replace-dot-git-string-at-end
refine string git removal from end
This commit is contained in:
commit
f47e9222bb
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ function initDT() {
|
||||||
function fetchAndShow(repo) {
|
function fetchAndShow(repo) {
|
||||||
repo = repo.replace('https://github.com/', '');
|
repo = repo.replace('https://github.com/', '');
|
||||||
repo = repo.replace('http://github.com/', '');
|
repo = repo.replace('http://github.com/', '');
|
||||||
repo = repo.replace(/.git$/, '');
|
repo = repo.replace(/\.git$/, '');
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://api.github.com/repos/${repo}/forks?sort=stargazers&per_page=100`
|
`https://api.github.com/repos/${repo}/forks?sort=stargazers&per_page=100`
|
||||||
|
|
Loading…
Reference in a new issue