MCPcopy
hub / github.com/elementalui/elemental / validateEmail

Function validateEmail

src/components/EmailInputGroup.js:6–8  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4var REGEXP_EMAIL = /^(([^<>()[\]\\.,;:\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,}))$/;
5
6function validateEmail (value) {
7 return REGEXP_EMAIL.test(value);
8}
9
10module.exports = React.createClass({
11 displayName: 'EmailInputGroup',

Callers 1

validateInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected