Skip to content

Commit b641895

Browse files
committed
buildx: fix regex in fixLocalState func
Signed-off-by: CrazyMax <[email protected]>
1 parent 4db21c4 commit b641895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/buildx/buildx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class Buildx {
192192
// https://github.com/docker/buildx/pull/2560
193193
private static fixLocalState(ls: LocalState): LocalState {
194194
const fnTrimToValidContext = function (inp: string): [string, string, boolean] {
195-
const match = inp.match(/(.*)(https?:\/{1,2}\S+|ssh:\/\/\S+|git:\/\/\S+)/i);
195+
const match = inp.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);
196196
if (match && match.length == 3) {
197197
const trimed = match[1];
198198
let url = match[2];

0 commit comments

Comments
 (0)