"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRestrictedDomain = void 0;
const isRestrictedDomain = (email) => {
    const restricted = ['gmailx.com', 'yahoox.com', 'aolx.com', 'hotmailx.com'];
    const matches = /^.+@(.+)$/.exec(email.toLowerCase());
    if (!matches) {
        return false;
    }
    const domain = matches[1];
    return restricted.includes(domain);
};
exports.isRestrictedDomain = isRestrictedDomain;
//# sourceMappingURL=isRestrictedDomain.js.map