diff --git a/js/main.js b/js/main.js index e19aae8..a4e1ebb 100644 --- a/js/main.js +++ b/js/main.js @@ -99,7 +99,7 @@ function initDT() { function fetchAndShow(repo) { repo = repo.replace('https://github.com/', ''); repo = repo.replace('http://github.com/', ''); - repo = repo.replace('.git', ''); + repo = repo.replace(/.git$/, ''); fetch( `https://api.github.com/repos/${repo}/forks?sort=stargazers&per_page=100`