mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Store: Ignore whitespace before and after search location.
This commit is contained in:
parent
00efad21a3
commit
ae3894de1e
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user