{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3290","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3290/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3290/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3290/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3290","id":155566066,"number":3290,"title":"domain .me does not work","user":{"login":"johnceltar","id":19374010,"avatar_url":"https://avatars.githubusercontent.com/u/19374010?v=3","gravatar_id":"","url":"https://api.github.com/users/johnceltar","html_url":"https://github.com/johnceltar","followers_url":"https://api.github.com/users/johnceltar/followers","following_url":"https://api.github.com/users/johnceltar/following{/other_user}","gists_url":"https://api.github.com/users/johnceltar/gists{/gist_id}","starred_url":"https://api.github.com/users/johnceltar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnceltar/subscriptions","organizations_url":"https://api.github.com/users/johnceltar/orgs","repos_url":"https://api.github.com/users/johnceltar/repos","events_url":"https://api.github.com/users/johnceltar/events{/privacy}","received_events_url":"https://api.github.com/users/johnceltar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20need%20more%20info","name":"type: need more info","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-18T18:07:42Z","updated_at":"2016-05-24T02:06:15Z","closed_at":null,"body":"Hi,\r\n\r\ni can not register new Users with our domain .me (blackspot.me) in Rocket.Chat (0.30 latest). \r\n\r\nI think it is a bug or is there a chance to change the add the .me Domain anywhere?\r\n\r\nThank and best regards\r\nceltar (from blackspot.me)\r\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/221147529","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3290#issuecomment-221147529","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3290","id":221147529,"user":{"login":"AJ-Acevedo","id":953092,"avatar_url":"https://avatars.githubusercontent.com/u/953092?v=3","gravatar_id":"","url":"https://api.github.com/users/AJ-Acevedo","html_url":"https://github.com/AJ-Acevedo","followers_url":"https://api.github.com/users/AJ-Acevedo/followers","following_url":"https://api.github.com/users/AJ-Acevedo/following{/other_user}","gists_url":"https://api.github.com/users/AJ-Acevedo/gists{/gist_id}","starred_url":"https://api.github.com/users/AJ-Acevedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AJ-Acevedo/subscriptions","organizations_url":"https://api.github.com/users/AJ-Acevedo/orgs","repos_url":"https://api.github.com/users/AJ-Acevedo/repos","events_url":"https://api.github.com/users/AJ-Acevedo/events{/privacy}","received_events_url":"https://api.github.com/users/AJ-Acevedo/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T02:06:15Z","updated_at":"2016-05-24T02:06:15Z","body":"Could it be something with the regex [here](https://github.com/RocketChat/Rocket.Chat/blob/611ecae62cbe447f8ee89a25549792d42a5cdb32/packages/rocketchat-lib/server/lib/validateEmailDomain.js#L22)?\r\n\r\n```js\r\nRocketChat.validateEmailDomain = function(email) {\r\n\tconst emailValidation = /^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\r\n\tif (!emailValidation.test(email)) {\r\n\t\tthrow new Meteor.Error('error-invalid-email', 'Invalid email ' + email, { function: 'RocketChat.validateEmailDomain', email: email });\r\n\t}\r\n```"}}
{"actor":{"display_login":"AJ-Acevedo"}}