8
This commit is contained in:
@@ -259,9 +259,11 @@ class Paciente {
|
||||
if (str_starts_with($tel, '+')) {
|
||||
$tel = ltrim($tel, '+');
|
||||
}
|
||||
// Sin prefijo (10 dígitos empezando por 3) → asume Colombia 57
|
||||
if (strlen($tel) === 10 && str_starts_with($tel, '3')) {
|
||||
$tel = '57' . $tel;
|
||||
}
|
||||
// Si ya trae prefijo de 2 dígitos (57xx... o 58xx...) lo respetamos
|
||||
return $tel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user