mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 01:48:50 +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
|
||||
*/
|
||||
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