forked from 0x2620/pandora
allow more things at end of place/event names: '")], fixes #2145
This commit is contained in:
parent
f933a984e2
commit
ee80dbc502
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue