Modification de l'expression regulière qui detecte le code postal et la ville, issue #0000320
This commit is contained in:
parent
ee2865117e
commit
ff80c919ce
@ -146,7 +146,7 @@ if ($typeRech == 'ent') {
|
||||
strtoupper($formR['dirCpVille']))
|
||||
);
|
||||
FB::log($dirCpVille, 'dirCpVille');
|
||||
if (preg_match('/^([0-9]{2,5})([\D]*)/i', $dirCpVille, $matches))
|
||||
if (preg_match('/^([0-9]{2,5})([\D]+)/i', $dirCpVille, $matches))
|
||||
{
|
||||
FB::log($matches, 'TEST');
|
||||
$dirCp = trim($matches[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user