From e92f0a4d56f04552bef140c8094b504355b3a189 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 30 Oct 2011 15:01:38 +0100 Subject: [PATCH] name/foo should work too --- pandora/event/models.py | 2 +- pandora/place/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/event/models.py b/pandora/event/models.py index 56f87d74d..a378c4c3e 100644 --- a/pandora/event/models.py +++ b/pandora/event/models.py @@ -78,7 +78,7 @@ class Event(models.Model): name = name.lower() if name in value and (value.startswith(name) or \ value.endswith(name) or \ - re.compile('\s%s[\.,;:!?\-\s]'%name).findall(value)): + re.compile('\s%s[\.,;:!?\-\/\s]'%name).findall(value)): matches.append(a.id) break if not matches: diff --git a/pandora/place/models.py b/pandora/place/models.py index 7ab8876da..9c01b2eec 100644 --- a/pandora/place/models.py +++ b/pandora/place/models.py @@ -87,7 +87,7 @@ class Place(models.Model): for name in [self.name] + list(self.alternativeNames): if name in value and (value.startswith(name) or \ value.endswith(name) or \ - re.compile('\s%s[\.,;:!?\-\s]'%name).findall(value)): + re.compile('\s%s[\.,;:!?\-\/\s]'%name).findall(value)): matches.append(a.id) break if not matches: