houdini/app/javascript/legacy/common/ff-form-validation/lib/email-regex.es6
2020-04-23 14:09:14 -05:00

4 lines
284 B
JavaScript

// License: LGPL-3.0-or-later
// http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
module.exports = /^(([^<>()\[\]\\.,;:\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,}))$/;