Skip to content

Commit

Permalink
Merge pull request #411 from crazy-max/buildx-localstate-regex-fix
Browse files Browse the repository at this point in the history
buildx: fix regex in fixLocalState func
  • Loading branch information
crazy-max authored Jul 15, 2024
2 parents 4db21c4 + b641895 commit 300c014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildx/buildx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 300c014

Please sign in to comment.