From b641895e8b33cc735f06c8f2d9eacdfdf17a3a2e Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:25:56 +0200 Subject: [PATCH] buildx: fix regex in fixLocalState func Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/buildx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildx/buildx.ts b/src/buildx/buildx.ts index d9c398ce..f584c87c 100644 --- a/src/buildx/buildx.ts +++ b/src/buildx/buildx.ts @@ -192,7 +192,7 @@ export class Buildx { // https://github.com/docker/buildx/pull/2560 private static fixLocalState(ls: LocalState): LocalState { const fnTrimToValidContext = function (inp: string): [string, string, boolean] { - const match = inp.match(/(.*)(https?:\/{1,2}\S+|ssh:\/\/\S+|git:\/\/\S+)/i); + const match = inp.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i); if (match && match.length == 3) { const trimed = match[1]; let url = match[2];