Fixes regex in addresses postal formating.
authorStéphane Jacob <sj@m4x.org>
Mon, 12 Dec 2011 16:46:37 +0000 (17:46 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 12 Dec 2011 16:46:37 +0000 (17:46 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/address.php

index 8423f9a..9783018 100644 (file)
@@ -423,7 +423,7 @@ class Address
     {
         // First we define numbers and separators.
         $numberReq = '(\d{1,4})\s*(BIS|TER|QUATER|[A-Z])?';
-        $separatorReq = '\s*(?:\\|-|&|A|ET)?\s*';
+        $separatorReq = '\s*(?:\\\\|\/|-|&|A|ET)?\s*';
 
         // Then we retrieve the number(s) and the rest of the line.
         // $matches contains: