From 83cdfa661de274c3b1eb92bf896b9e61bef26927 Mon Sep 17 00:00:00 2001 From: David Kwon Date: Fri, 29 Sep 2023 12:02:55 -0400 Subject: [PATCH] fix: remotes url parameter in factory url Signed-off-by: David Kwon --- .../src/services/factory-location-adapter/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard-frontend/src/services/factory-location-adapter/index.ts b/packages/dashboard-frontend/src/services/factory-location-adapter/index.ts index 04d406fbc..37e9eb123 100644 --- a/packages/dashboard-frontend/src/services/factory-location-adapter/index.ts +++ b/packages/dashboard-frontend/src/services/factory-location-adapter/index.ts @@ -52,7 +52,7 @@ export class FactoryLocationAdapter implements FactoryLocation { } public static isHttpLocation(href: string): boolean { - return /^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(href); + return /^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,}\b([-a-zA-Z0-9@:%_+.~#?&/={},]*)$/.test(href); } public static isSshLocation(href: string): boolean {