From 292c2b3ef89e0577d90a06d2dae6ad38f51030f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 12 Dec 2011 17:46:37 +0100 Subject: [PATCH] Fixes regex in addresses postal formating. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.1.4