Skip to content

Commit

Permalink
Fixed regex typo
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Attwood <[email protected]>
  • Loading branch information
samuelattwood committed Jan 15, 2023
1 parent 3f467bb commit 37253b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func fetchUpstreamHelmrepo(upstreamYaml parse.UpstreamYaml) (ChartSourceMetadata
indexYaml := repo.NewIndexFile()
chartSourceMeta := ChartSourceMetadata{}

if !regexp.MustCompile("^http?://").MatchString(url) {
if !regexp.MustCompile("^https?://").MatchString(url) {
return chartSourceMeta, fmt.Errorf("%s (%s) invalid URL: %s", upstreamYaml.Vendor, upstreamYaml.HelmChart, url)
}

Expand Down

0 comments on commit 37253b1

Please sign in to comment.