Only accept `./` and `../`
This commit is contained in:
parent
dfc4b0293f
commit
a61ae2a5b3
|
|
@ -45,7 +45,7 @@ func (helm *execer) UpdateRepo() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func normalizeChart(chart string) (string, error) {
|
func normalizeChart(chart string) (string, error) {
|
||||||
regex, err := regexp.Compile("^[.]?[.]?/")
|
regex, err := regexp.Compile("^[.]?./")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue