Commit 9a01b965
9a01b96581b8Merged
zhilyaev <[email protected]> · 5 years ago · 6 files · ~6 modified
Description
bad
Details
- Commit
- 9a01b96581b8
- Parent
- d48640803ff5
pkg/helper/func.gomodifiedView file
@@ -5,6 +5,7 @@
55
log "github.com/sirupsen/logrus"66
"io"77
"net/http"8+
"net/url"89
"os"910
"path/filepath"1011
)@@ -83,3 +84,8 @@
8384
8485
return nil8586
}87+
88+
func IsUrl(str string) bool {89+
u, err := url.Parse(str)90+
return err == nil && u.Scheme != "" && u.Host != ""91+
}pkg/plan/build.gomodifiedView file
Loading diff…
pkg/plan/export.gomodifiedView file
Loading diff…
pkg/plan/new.gomodifiedView file
Loading diff…
pkg/release/config.gomodifiedView file
Loading diff…
pkg/release/values.gomodifiedView file
Loading diff…