From: Stéphane Jacob Date: Mon, 12 Dec 2011 16:46:37 +0000 (+0100) Subject: Fixes regex in addresses postal formating. X-Git-Tag: xorg/1.1.5~54 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=292c2b3ef89e0577d90a06d2dae6ad38f51030f6;p=platal.git Fixes regex in addresses postal formating. Signed-off-by: Stéphane Jacob --- diff --git a/classes/address.php b/classes/address.php index 8423f9a..9783018 100644 --- a/classes/address.php +++ b/classes/address.php @@ -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: