Basic signup form is bouncing back a message
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
var emailExpression = /^(([^<>()[\]\\.,;:\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,}))$/;
|
||||
|
||||
function validateEmail(email) {
|
||||
return emailExpression.test(email);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
validateEmail
|
||||
};
|
||||
Reference in New Issue
Block a user