Skip to content

Commit

Permalink
Merge branch 'master' into MUzairS15/improve/helm-dryrun
Browse files Browse the repository at this point in the history
Signed-off-by: Mohd Uzair <[email protected]>
  • Loading branch information
Mohd Uzair authored Aug 21, 2024
2 parents e9e7c2f + 836d0eb commit 9dac74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func extractSemVer(versionConstraint string) string {
reg := regexp.MustCompile(`v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$`)
reg := regexp.MustCompile(`v?([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$`)
match := reg.Find([]byte(versionConstraint))
if match != nil {
return string(match)
Expand Down

0 comments on commit 9dac74d

Please sign in to comment.