Modification de l'expression regulière qui detecte le code postal et la ville, issue #0000320

This commit is contained in:
Michael RICOIS 2010-08-02 08:37:17 +00:00
parent ee2865117e
commit ff80c919ce

View File

@ -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]);