Files
argo-cd/util/helm/version.go
jannfis cb47740d62 chore(deps): Update github.com/Masterminds/semver to v3.1.1 (#8180)
* chore(deps): Upgrade Masterminds/semver to v3.1.1

Signed-off-by: jannfis <jann@mistrust.net>

* Do not anchor regexp

Signed-off-by: jannfis <jann@mistrust.net>
2022-01-14 19:28:34 +01:00

9 lines
148 B
Go

package helm
import "github.com/Masterminds/semver/v3"
func IsVersion(text string) bool {
_, err := semver.NewVersion(text)
return err == nil
}