MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / validateEmail

Function validateEmail

assets/js/student.js:100–103  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

98
99}
100function validateEmail(email) {
101 const re = /^(([^<>()[\]\\.,;:\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,}))$/;
102 return re.test(email);
103}

Callers 1

student.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected