Merge pull request #40 from rabinshrestha/replace-dot-git-string-at-end

refine string git removal from end
This commit is contained in:
Samar Dhwoj Acharya 2020-07-01 11:56:40 -05:00 committed by GitHub
commit f47e9222bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`