Fix issue on email address check

This commit is contained in:
Pierre 2018-04-11 08:52:40 +02:00
parent bfd8bb2cf0
commit 5115371bac

View File

@ -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);
}
/**