kitchen-simulator
Version:
It is a kitchen simulator (self-contained micro-frontend).
10 lines (9 loc) • 419 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.emailValidation = void 0;
var emailValidation = exports.emailValidation = function emailValidation(email) {
var result = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return result.test(String(email).toLowerCase());
};