We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e6ddaa + bccdecd commit 249ee2dCopy full SHA for 249ee2d
version_test.go
@@ -41,6 +41,10 @@ func TestStrictNewVersion(t *testing.T) {
41
{"1.2.2147483648", false},
42
{"1.2147483648.3", false},
43
{"2147483648.3.0", false},
44
+
45
+ // The SemVer spec in a pre-release expects to allow [0-9A-Za-z-]. But,
46
+ // the lack of all 3 parts in this version should produce an error.
47
+ {"20221209-update-renovatejson-v4", true},
48
}
49
50
for _, tc := range tests {
@@ -94,6 +98,9 @@ func TestNewVersion(t *testing.T) {
94
98
{"12.3.4.1234", true},
95
99
{"12.23.4.1234", true},
96
100
{"12.3.34.1234", true},
101
102
+ // The SemVer spec in a pre-release expects to allow [0-9A-Za-z-].
103
+ {"20221209-update-renovatejson-v4", false},
97
104
105
106
0 commit comments