projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67dd31d
)
Fixes regex in addresses postal formating.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 12 Dec 2011 16:46:37 +0000
(17:46 +0100)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/classes/address.php
b/classes/address.php
index
8423f9a
..
9783018
100644
(file)
--- 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: