Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
FS#773 - [MS] Verify client side the entered email is correct when signing up
|
DetailsVerify client side the entered email is correct when signing up
pattern: var ck_email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; js: var email="foo@bar.com" ck_email.test(email) |
This task depends upon
function validateEmail(email) {
var 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,}))$/;
return re.test(email);
}