From deb1693fa30a891958422fc7a3557024da708e1a Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Wed, 31 Jul 2024 13:37:53 +0200 Subject: [PATCH] fix: properly check for GitHub org --- src/validator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' }; }