{"action":"opened","issue":{"url":"https://api.github.com/repos/customink/format_for_extensions/issues/2","labels_url":"https://api.github.com/repos/customink/format_for_extensions/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/customink/format_for_extensions/issues/2/comments","events_url":"https://api.github.com/repos/customink/format_for_extensions/issues/2/events","html_url":"https://github.com/customink/format_for_extensions/issues/2","id":126412877,"number":2,"title":"Default email regex allows invalid values","user":{"login":"wingrunr21","id":46283,"avatar_url":"https://avatars.githubusercontent.com/u/46283?v=3","gravatar_id":"","url":"https://api.github.com/users/wingrunr21","html_url":"https://github.com/wingrunr21","followers_url":"https://api.github.com/users/wingrunr21/followers","following_url":"https://api.github.com/users/wingrunr21/following{/other_user}","gists_url":"https://api.github.com/users/wingrunr21/gists{/gist_id}","starred_url":"https://api.github.com/users/wingrunr21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wingrunr21/subscriptions","organizations_url":"https://api.github.com/users/wingrunr21/orgs","repos_url":"https://api.github.com/users/wingrunr21/repos","events_url":"https://api.github.com/users/wingrunr21/events{/privacy}","received_events_url":"https://api.github.com/users/wingrunr21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T12:57:37Z","updated_at":"2016-01-13T12:57:37Z","closed_at":null,"body":"The default email regex of [`^([^@\\s]+)@((?:[-a-z0-9]+\\.)+[a-z]{2,})$`]() allows invalid values to pass. Specifically, this regex will allow the string `http://foo.bar.com@foobar.com` to pass.\r\n\r\nA recommended replacement regex is `/\\A([\\w+\\-].?)+@[a-z\\d\\-]+(\\.[a-z]+)*\\.[a-z]+\\z/i`."}}