Correccion en la validacion de email para admitir guion medio en los campos tipo email (-)
This commit is contained in:
parent
91220c0341
commit
e6c83788a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user