Store: Ignore whitespace before and after search location.

This commit is contained in:
John Schember 2011-07-04 15:14:29 -04:00
parent 00efad21a3
commit ae3894de1e

View File

@ -294,6 +294,7 @@ class SearchFilter(SearchQueryParser):
return self.srs
def get_matches(self, location, query):
query = query.strip()
location = location.lower().strip()
if location == 'authors':
location = 'author'