diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index aabba12..7161c82 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -11942,7 +11942,7 @@ if($campo_tipo_accion != "oculto") { function validar_email($email) { -if (preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/',$email)) { +if (preg_match('/^[^0-9][a-zA-Z0-9_-]+([.][a-zA-Z0-9_-]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/',$email)) { return 1; }else{ return 0;