var emailRegex=/^\w+([.+,-]\w+)*@\w+([.-]\w+)*\.\w{2,}$/;var whitespaaceRegex=/\S/;var phoneNumberRegex=/^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$/;var dateRegex=/^((0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20|21)?[0-9]{2})*$/;var emailValidation=function(e){if(e&&!emailRegex.test(e)){return true}};var numberValidation=function(e){if(e&&!phoneNumberRegex.test(e)){return true}};var whitespaceValidation=function(e){return whitespaaceRegex.test(e)};var dateValidation=function(e){return dateRegex.test(e)};export{dateValidation as d,emailValidation as e,numberValidation as n,whitespaceValidation as w};
//# sourceMappingURL=validations-7f331834.js.map