From 503a1d72294877781f48e71c50583e2739f72d0f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 21 Sep 2016 11:55:53 -0700 Subject: [PATCH] reserve .app namespace for apps --- src/groups.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groups.js b/src/groups.js index cc17bcfba..80d34429d 100644 --- a/src/groups.js +++ b/src/groups.js @@ -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; }