diff --git a/internal/model/model.go b/internal/model/model.go index ba58c61..a2d0008 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -27,8 +27,8 @@ type ModuleReference struct { } // pathRgx covers -// - unix paths: ".", "..", prefixed "./", prefixed "../", prefixed "/" -// - windows paths: ".", "..", prefixed ".\", prefixed "..\", prefixed ":\" +// - unix paths: ".", "..", prefixed "./", prefixed "../", prefixed "/" +// - windows paths: ".", "..", prefixed ".\", prefixed "..\", prefixed ":\" var pathRgx = regexp.MustCompile(`^(\.\.?($|/|\\)|/|[A-Za-z]:\\)`) // IsLocal returns true if the module reference points to a local path