File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ const (
69
69
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-restrictions
70
70
// borrowed from this article and also testing various ASCII characters following regex
71
71
// is supported by AWS S3 for both tags and values.
72
- var validTagKeyValue = regexp .MustCompile (`^[a-zA-Z0-9-+\-._:/@]+$` )
72
+ var validTagKeyValue = regexp .MustCompile (`^[a-zA-Z0-9-+\-._:/@ ]+$` )
73
73
74
74
func checkKey (key string ) error {
75
75
if len (key ) == 0 {
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ func TestParseTags(t *testing.T) {
31
31
"key1=value1&key2=value2" ,
32
32
false ,
33
33
},
34
+ {
35
+ "store+forever=false&factory=true" ,
36
+ false ,
37
+ },
38
+ {
39
+ " store forever =false&factory=true" ,
40
+ false ,
41
+ },
34
42
{
35
43
fmt .Sprintf ("%0128d=%0256d" , 1 , 1 ),
36
44
false ,
You can’t perform that action at this time.
0 commit comments