allow more things at end of place/event names: '")], fixes #2145

This commit is contained in:
j 2014-02-01 20:09:38 +00:00
parent f933a984e2
commit ee80dbc502

View file

@ -70,7 +70,7 @@ def get_matches(obj, model, layer_type, qs=None):
for name in [obj.name] + list(obj.alternativeNames):
name = name.lower()
name = ox.decode_html(name)
if name in value and (exact or re.compile('((^|\s)%s([\.,;:!?\-\/\s]|$))'%re.escape(name)).findall(value)):
if name in value and (exact or re.compile('((^|\s)%s([\.,;:!?\'"\)\]\-\/\s]|$))'%re.escape(name)).findall(value)):
matches.append(a.id)
break
if not matches: