Correction expression régulière control email

This commit is contained in:
Michael RICOIS 2010-05-27 13:58:10 +00:00
parent 83521a0426
commit e2515b022a

View File

@ -125,7 +125,7 @@ $(document).ready(function(){
*/
function checkEmail(eMail){
var isMail = eMail.length;
var verif = '/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/';
var verif = /^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]{2,}[.][a-zA-Z]{2,3}$/;
if(!isMail || verif.exec(eMail)==null){
return false;
} else {