reserve .app namespace for apps

This commit is contained in:
Girish Ramakrishnan
2016-09-21 11:55:53 -07:00
parent 9a000ddaf0
commit 503a1d7229
+3
View File
@@ -64,6 +64,9 @@ function validateGroupname(name) {
if (RESERVED.indexOf(name) !== -1) return new GroupError(GroupError.BAD_FIELD, 'name is reserved');
// app emails are sent using the .app suffix
if (name.indexOf('.app') !== -1) return new GroupError(GroupError.BAD_FIELD, 'name pattern is reserved for apps');
return null;
}