mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Fix issue on email address check
This commit is contained in:
parent
bfd8bb2cf0
commit
5115371bac
@ -177,7 +177,7 @@ function clearObject(object){
|
|||||||
* @return {Boolean} True for a valid email address / false else
|
* @return {Boolean} True for a valid email address / false else
|
||||||
*/
|
*/
|
||||||
function checkMail(emailAddress){
|
function checkMail(emailAddress){
|
||||||
return (emailAddress.match(/^[a-zA-Z0-9_.]+@[a-zA-Z0-9-.]{1,}[.][a-zA-Z]{2,5}$/) === null ? false : true);
|
return (emailAddress.match(/^[a-zA-Z0-9_.]+@[a-zA-Z0-9-.]{1,}[.][a-zA-Z]{2,8}$/) === null ? false : true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user