Skip to content

Commit

Permalink
fix: properly check for GitHub org
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Jul 31, 2024
1 parent a278434 commit deb1693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ async function isGitHubValidated(url, ipaWebsite) {
return { error: 'Non è un URL GitHub' };
}

orgName = u.pathname;
// Remove the leading slash
orgName = u.pathname.substring(1);
} catch {
return { error: 'Indirizzo non valido' };
}
Expand Down

0 comments on commit deb1693

Please sign in to comment.