From ee5f3419097ad532684682e64d249d6266074c65 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Wed, 31 Jul 2024 13:39:48 +0200 Subject: [PATCH] fix: properly check for GitHub org (#231) --- 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' }; }