2016-06-26 11:53:19 +00:00
|
|
|
if (typeof define === "undefined") {
|
|
|
|
var define = function(fn) {
|
|
|
|
fn(require, exports, module);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
define(function(require, exports, module) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var internalDomain = ['c9.io', 'cloud9beta.com'];
|
|
|
|
|
|
|
|
function hasInternalDomain(email) {
|
|
|
|
if (!email) return false;
|
2017-05-13 19:56:12 +00:00
|
|
|
var emailDomain = email.split("@").pop();
|
|
|
|
return internalDomain.indexOf(emailDomain) != -1;
|
2016-06-26 11:53:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = hasInternalDomain;
|
|
|
|
});
|