expclude prefix from query term

This commit is contained in:
Philippe Mongeau 2013-03-10 18:51:43 -04:00
parent 7d879289c1
commit 7bc0b3a518

View file

@ -615,7 +615,7 @@ class CollectionQuery(Query):
term = match.group(2)
for p in prefixes:
if term.startswith(p):
return (key, term, p)
return (key, term[len(p):], p)
return (key, term, False)
@classmethod