Skip to content

Commit 00cb1ab

Browse files
committed
star count fix?
1 parent 844a681 commit 00cb1ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/scheduled.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ const getStars = async() => {
6969
// called for every repo in libraries and tools
7070
const getRepo = async(repoName) => await request(`https://api.github.com/repos/${repoName}`)
7171
const getRepoName = (url) => {
72-
const parts = url.split('github.com/')[1].split('/')
72+
const cleanUrl = url.split('#')[0]
73+
const parts = cleanUrl.split('github.com/')[1].split('/')
7374
return `${parts[0]}/${parts[1]}`
7475
}
7576
const repos = [...libraries(), ...tools()]

0 commit comments

Comments
 (0)