summaryrefslogtreecommitdiff
path: root/archaeological_operations/data_importer.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-02-10 16:20:23 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-02-10 16:22:27 +0100
commita94f64d037f4b060a3fb25f0d601f48707cf66ba (patch)
tree13f3b2ffea2b2e49b13a43b005b68ef0ee622d41 /archaeological_operations/data_importer.py
parent399bb9520ef003e4d48d4e25584cfb6db998238c (diff)
downloadIshtar-a94f64d037f4b060a3fb25f0d601f48707cf66ba.tar.bz2
Ishtar-a94f64d037f4b060a3fb25f0d601f48707cf66ba.zip
Fix regexp to fix a python bug
* http://bugs.python.org/issue18647#msg194412
Diffstat (limited to 'archaeological_operations/data_importer.py')
-rw-r--r--archaeological_operations/data_importer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py
index 2c016b588..4c75ba53d 100644
--- a/archaeological_operations/data_importer.py
+++ b/archaeological_operations/data_importer.py
@@ -138,10 +138,10 @@ class SurfaceFormater(Formater):
#RE_ADD_CD_POSTAL_TOWN = re.compile("(.*)[, ](\d{5}) (.*?) *(?: "\
# "*CEDEX|cedex|Cedex *\d*)*")
-RE_NAME_ADD_CD_POSTAL_TOWN = re.compile("(.*)?[, ]*" + NEW_LINE_BREAK \
- + "(.*)?[, ]*(\d{2} *\d{3})[, ]*(.+)")
+RE_NAME_ADD_CD_POSTAL_TOWN = re.compile("(.+)?[, ]*" + NEW_LINE_BREAK \
+ + "(.+)?[, ]*(\d{2} *\d{3})[, ]*(.+)")
-RE_ADD_CD_POSTAL_TOWN = re.compile("(.*)?[, ]*(\d{2} *\d{3})[, ]*(.+)")
+RE_ADD_CD_POSTAL_TOWN = re.compile("(.+)?[, ]*(\d{2} *\d{3})[, ]*(.+)")
RE_CD_POSTAL_FILTER = re.compile("(\d*) (\d*)")