mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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
|
return self.srs
|
||||||
|
|
||||||
def get_matches(self, location, query):
|
def get_matches(self, location, query):
|
||||||
|
query = query.strip()
|
||||||
location = location.lower().strip()
|
location = location.lower().strip()
|
||||||
if location == 'authors':
|
if location == 'authors':
|
||||||
location = 'author'
|
location = 'author'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user