[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Partial fix for bug 27421
From: |
David MENTRE |
Subject: |
[Maposmatic-dev] [PATCH] Partial fix for bug 27421 |
Date: |
Sun, 20 Dec 2009 23:43:20 +0100 |
* Idea of Gaël: do not match French street name which is only made of a
prefix. Example: "(Impasse)" => "Impasse" for "Besançon" city.
---
ocitysmap/i18n.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ocitysmap/i18n.py b/ocitysmap/i18n.py
index f0a58d8..ae1d781 100644
--- a/ocitysmap/i18n.py
+++ b/ocitysmap/i18n.py
@@ -68,7 +68,7 @@ class i18n_fr_FR_UTF8(i18n):
u" de", u" d'", u"" ]
SPACE_REDUCE = re.compile(r"\s+")
- PREFIX_REGEXP = re.compile(r"^(?P<prefix>(%s)(%s)?)\s?\b(?P<name>.*)" %
+ PREFIX_REGEXP = re.compile(r"^(?P<prefix>(%s)(%s)?)\s?\b(?P<name>.+)" %
("|".join(APPELLATIONS),
"|".join(DETERMINANTS)), re.IGNORECASE
| re.UNICODE)
--
1.6.3.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Maposmatic-dev] [PATCH] Partial fix for bug 27421,
David MENTRE <=