diff --git a/src/validator.js b/src/validator.js index 1b72516..438f58d 100644 --- a/src/validator.js +++ b/src/validator.js @@ -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' }; }