Update go-version v1.2.3 -> v1.2.4 (#13169)
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
12a1f914f4
commit
b222dbc1d1
6 changed files with 17 additions and 11 deletions
4
vendor/github.com/hashicorp/go-version/README.md
generated
vendored
4
vendor/github.com/hashicorp/go-version/README.md
generated
vendored
|
@ -1,6 +1,6 @@
|
|||
# Versioning Library for Go
|
||||
[](https://circleci.com/gh/hashicorp/go-version/tree/master)
|
||||
[](https://godoc.org/github.com/hashicorp/go-version)
|
||||

|
||||
[](https://godoc.org/github.com/6543/go-version)
|
||||
|
||||
go-version is a library for parsing versions and version constraints,
|
||||
and verifying versions against a set of constraints. go-version
|
||||
|
|
2
vendor/github.com/hashicorp/go-version/go.mod
generated
vendored
2
vendor/github.com/hashicorp/go-version/go.mod
generated
vendored
|
@ -1 +1,3 @@
|
|||
module github.com/6543/go-version
|
||||
|
||||
go 1.15
|
||||
|
|
12
vendor/github.com/hashicorp/go-version/version.go
generated
vendored
12
vendor/github.com/hashicorp/go-version/version.go
generated
vendored
|
@ -18,10 +18,14 @@ var (
|
|||
// The raw regular expression string used for testing the validity
|
||||
// of a version.
|
||||
const (
|
||||
VersionRegexpRaw string = `[vV]?([0-9]+(\.[0-9]+)*?)` +
|
||||
`(-([0-9]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)|(-?([A-Za-z\-~]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)))?` +
|
||||
`(\+([0-9A-Za-z\-~]+(\.[0-9A-Za-z\-~]+)*))?` +
|
||||
`([\+\.\-~]g[0-9A-Fa-f]{10}$)?` +
|
||||
VersionRegexpRaw string = `[vV]?` + // Optional [vV] prefix
|
||||
`([0-9]+(\.[0-9]+)*?)` + // ( MajorNum ( '.' MinorNums ) *? )
|
||||
`(-` + // Followed by (optionally): ( '-'
|
||||
`([0-9]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)` + // Either ( PreNum String ( '.' OtherString ) * )
|
||||
`|` +
|
||||
`([-\.]?([A-Za-z\-~]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)))?` + // Or ( ['-' '.' ] ? ( AlphaHyphenTilde String * ( '.' String ) * ))) ?
|
||||
`(\+([0-9A-Za-z\-~]+(\.[0-9A-Za-z\-~]+)*))?` + // and more Optionally: ( '+' String ( '.' String ) * )
|
||||
`([\+\.\-~]g[0-9A-Fa-f]{10}$)?` + // Optionally a: ( Punct 'g' Sha )
|
||||
`?`
|
||||
|
||||
// SemverRegexpRaw requires a separator between version and prerelease
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue