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.
1 parent 0402f41 commit 4b69599Copy full SHA for 4b69599
api/v1beta1/tags.go
@@ -86,7 +86,7 @@ func (t Tags) Validate() []*field.Error {
86
const maxUserTagsAllowed = 50
87
var errs field.ErrorList
88
var userTagCount = len(t)
89
- re := regexp.MustCompile(`^[a-zA-Z0-9\\s\_\.\:\=\+\-\@\/]*$`)
+ re := regexp.MustCompile(`^[a-zA-Z0-9\s\_\.\:\=\+\-\@\/]*$`)
90
91
for k, v := range t {
92
if len(k) < 1 {
api/v1beta1/tags_test.go
@@ -179,6 +179,13 @@ func TestTags_Validate(t *testing.T) {
179
},
180
expected: nil,
181
182
+ {
183
+ name: "no errors - spaces allowed",
184
+ self: Tags{
185
+ "validKey": "valid Value",
186
+ },
187
+ expected: nil,
188
189
{
190
name: "key cannot be empty",
191
self: Tags{
0 commit comments