Correction expression régulière control email
This commit is contained in:
parent
83521a0426
commit
e2515b022a
@ -125,7 +125,7 @@ $(document).ready(function(){
|
|||||||
*/
|
*/
|
||||||
function checkEmail(eMail){
|
function checkEmail(eMail){
|
||||||
var isMail = eMail.length;
|
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){
|
if(!isMail || verif.exec(eMail)==null){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user