Validate names only contain allowed characters.
@@ -419,6 +419,27 @@ func TestValidateName(t *testing.T) {
input: "file-bugs-for-alerter",
pass: true,
},
+ {
+ name: "weird characters",
+ input: "[my] dash/tab (this_poem.of-sorts~) <@special1>",
+ pass: true,
+ },
+ {
+ name: "backslash",
+ input: "my\\dash",
+ },
+ {
+ name: "colon",
+ input: "my:dash",
+ },
+ {
+ name: "question",
+ input: "my?dash",
+ },
+ {
+ name: "semicolon",
+ input: "my;dash",
+ },
{
name: "Valid name",
input: "some-test-group",
