diff options
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 |
commit | 73c8ff7564324a52fa5de45732c6af2fb66cd6b8 (patch) | |
tree | 13f3b2ffea2b2e49b13a43b005b68ef0ee622d41 | |
parent | d5f08aa8b6500995c46e34a7bb6e8c287f85dd79 (diff) | |
download | Ishtar-73c8ff7564324a52fa5de45732c6af2fb66cd6b8.tar.bz2 Ishtar-73c8ff7564324a52fa5de45732c6af2fb66cd6b8.zip |
Fix regexp to fix a python bug
* http://bugs.python.org/issue18647#msg194412
-rw-r--r-- | archaeological_operations/data_importer.py | 6 |
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*)") |