Skip to content

Commit

Permalink
feat: Authorizing lazier semver with just major
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 21, 2021
1 parent f12fb75 commit ac67819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/semver/semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (

var (
// According to https://semver.org/#spec-item-11
semverMatcher = regexp.MustCompile(`(?i)^[a-zA-Z]*([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(-[a-zA-Z0-9.]+)?(?:\+[a-zA-Z0-9.]+)?$`)
semverMatcher = regexp.MustCompile(`(?i)^[a-zA-Z]*([0-9]+)(?:\.([0-9]+))?(?:\.([0-9]+))?(-[a-zA-Z0-9.]+)?(?:\+[a-zA-Z0-9.]+)?$`)

nonFinalVersions = []string{"alpha", "beta", "canary", "rc", "test"}

Expand Down

0 comments on commit ac67819

Please sign in to comment.