@grouparoo/core
Version:
The Grouparoo Core
13 lines (12 loc) • 474 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* While there are many more robust ways to validate an email, we have seen our customers use long domains or suffixes to map to internal tools, deactivated users, etc.
* We will only be validating that 1) there is an @ and 2) there is a . after the @.
*/
function isEmail(string) {
if (string.match(/^\S+@\S+\.\S+$/))
return true;
return false;
}
exports.default = isEmail;