kitchen-simulator
Version:
It is a kitchen simulator (self-contained micro-frontend).
10 lines (9 loc) • 317 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.phoneValidation = void 0;
var phoneValidation = exports.phoneValidation = function phoneValidation(phone) {
var result = /^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/;
return result.test(String(phone).toLowerCase());
};