Skip to content

Commit

Permalink
feat(config): allow pre-release version
Browse files Browse the repository at this point in the history
  • Loading branch information
budimanjojo committed Sep 30, 2022
1 parent a9c035e commit dde32d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/validate/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (c Config) IsRFC6902List(input []map[string]interface{}) bool {
}

func (c Config) IsVersion(version string) bool {
if match, _ := regexp.MatchString(`^v?(\d+\.)(\d+\.)(\d+)$`, version); match {
if match, _ := regexp.MatchString(`^v?(\d+\.)(\d+\.)(\d+)(-alpha\.\d+)?$`, version); match {
return true
}
return false
Expand Down

0 comments on commit dde32d3

Please sign in to comment.