Fax
This commit is contained in:
@@ -255,7 +255,7 @@ include __DIR__ . '/../partials/sidebar_configuracion.php';
|
||||
}
|
||||
|
||||
// Validación Fax
|
||||
if (!/^\d{3} \d{3} \d{4}$/.test(fax)) {
|
||||
if (fax !== '' && !/^\d{3} \d{3} \d{4}$/.test(fax)) {
|
||||
errores.push('El número de fax debe tener el formato: 123 456 7890.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user