Fixed issue in mail verification

This commit is contained in:
Pierre 2018-02-23 11:41:32 +01:00
parent a5066ad8a5
commit 8d2e5dcb35

View File

@ -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,5}$/) === null ? false : true);
} }
/** /**