From ee80dbc502e321f84e2fa388d4d966d107da389d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 1 Feb 2014 20:09:38 +0000 Subject: [PATCH] allow more things at end of place/event names: '")], fixes #2145 --- pandora/annotation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index 0938c72a2..da2ac4810 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -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: