Validate and publish source-only candidates
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package versioncontract
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ErrInvalidIdentifier identifies a production identifier outside its grammar.
|
||||
var ErrInvalidIdentifier = errors.New("invalid release identifier")
|
||||
|
||||
// ValidStableVersion reports whether version uses the selected vMAJOR.MINOR.PATCH form.
|
||||
func ValidStableVersion(version string) bool {
|
||||
return ValidIdentifier(version, "semver", "v")
|
||||
|
||||
Reference in New Issue
Block a user