Allow _ (underscores) in group names.

This commit is contained in:
Ricky Zhou (周家杰) 2008-03-14 18:34:03 -04:00
parent 001c6064eb
commit 3caef15344

View file

@ -39,7 +39,7 @@ class GroupCreate(validators.Schema):
name = validators.All(
UnknownGroup,
validators.String(max=32, min=3),
validators.Regex(regex='^[a-z0-9\-]+$'),
validators.Regex(regex='^[a-z0-9\-_]+$'),
)
display_name = validators.NotEmpty
owner = validators.All(