feat: ignore non-.git repos
This commit is contained in:
parent
bec2c0d2a8
commit
d2be55824f
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ function renderRepoDescription(repoLink) {
|
||||||
let repoName = repoLink.textContent;
|
let repoName = repoLink.textContent;
|
||||||
if (repoName.toLowerCase().endsWith('.git')) {
|
if (repoName.toLowerCase().endsWith('.git')) {
|
||||||
repoName = repoName.slice(0, -4);
|
repoName = repoName.slice(0, -4);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
postsContainer.innerHTML = "";
|
postsContainer.innerHTML = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue