Skip to content

Commit

Permalink
Use lower case name to generate URLs from repos
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Jun 10, 2020
1 parent 97c62b4 commit 033eab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/find-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Promise.all(
);
// * look if those without a homepage URL have a match with their generated URL
Promise.all(cgSpecRepos.filter(r => !r.homepageUrl)
.map(r => `https://${r.owner.login}.github.io/${r.name}/`)
.filter(u => !specs.find(s => s.nightly.url.startsWith(u)))
.map(r => `https://${r.owner.login.toLowerCase()}.github.io/${r.name}/`)
.filter(u => !specs.find(s => s.nightly.url === u))
.map(u => fetch(u).then(({status, url}) => {
if (status !== 404) return url;
}))).then(urls => {
Expand Down

0 comments on commit 033eab6

Please sign in to comment.