mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
19 lines
475 B
JavaScript
19 lines
475 B
JavaScript
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;
|
|
var emailDomain = email.split("@").pop();
|
|
return internalDomain.indexOf(emailDomain) != -1;
|
|
}
|
|
|
|
module.exports = hasInternalDomain;
|
|
}); |