Skip to content

Commit 353fa92

Browse files
authored
Merge pull request #87 from jeremycarroll/patch-1
Added $ to ValidPrerelease
2 parents 89c90fa + 5be2a7f commit 353fa92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const SemVerRegex string = `v?([0-9]+)(\.[0-9]+)?(\.[0-9]+)?` +
3434

3535
// ValidPrerelease is the regular expression which validates
3636
// both prerelease and metadata values.
37-
const ValidPrerelease string = `^([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*)`
37+
const ValidPrerelease string = `^([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*)$`
3838

3939
// Version represents a single semantic version.
4040
type Version struct {

0 commit comments

Comments
 (0)