From 149d1e58a1c47269477f13b7d26fc6a5b4850f4e Mon Sep 17 00:00:00 2001 From: WarningImHack3r <43064022+WarningImHack3r@users.noreply.github.com> Date: Fri, 21 Nov 2025 20:08:41 +0100 Subject: [PATCH 1/3] reproduce it with logs? --- src/params/gh.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/params/gh.ts b/src/params/gh.ts index 95b362f3..d95988e9 100644 --- a/src/params/gh.ts +++ b/src/params/gh.ts @@ -1,3 +1,5 @@ export function match(param) { - return param.replace(/^https?:\/\//, "") === "github.com"; + const matches = param.replace(/^https?:\/\//, "") === "github.com"; + console.log(`${param} matches? ${matches}.`); + return matches; } From 73e7772ef31544e72607d88ed7be4188a3595663 Mon Sep 17 00:00:00 2001 From: WarningImHack3r <43064022+WarningImHack3r@users.noreply.github.com> Date: Fri, 21 Nov 2025 20:11:56 +0100 Subject: [PATCH 2/3] was that it --- src/params/gh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/params/gh.ts b/src/params/gh.ts index d95988e9..9763b9ba 100644 --- a/src/params/gh.ts +++ b/src/params/gh.ts @@ -1,5 +1,5 @@ export function match(param) { - const matches = param.replace(/^https?:\/\//, "") === "github.com"; + const matches = param.replace(/^https?:\/\/?/, "") === "github.com"; console.log(`${param} matches? ${matches}.`); return matches; } From 9d51db5896e7d8c143ee56d0692649425e63dadb Mon Sep 17 00:00:00 2001 From: WarningImHack3r <43064022+WarningImHack3r@users.noreply.github.com> Date: Fri, 21 Nov 2025 20:15:00 +0100 Subject: [PATCH 3/3] it was it... --- src/params/gh.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/params/gh.ts b/src/params/gh.ts index 9763b9ba..48a66618 100644 --- a/src/params/gh.ts +++ b/src/params/gh.ts @@ -1,5 +1,3 @@ export function match(param) { - const matches = param.replace(/^https?:\/\/?/, "") === "github.com"; - console.log(`${param} matches? ${matches}.`); - return matches; + return param.replace(/^https?:\/\/?/, "") === "github.com"; }