mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Store: Clean calibre query logic from searches better.
This commit is contained in:
parent
6a40749075
commit
9c09756b1c
1 changed files with 2 additions and 0 deletions
|
|
@ -324,6 +324,8 @@ def _clean_query(self, query):
|
|||
query = query.replace('!', '')
|
||||
query = query.replace('=', '')
|
||||
query = query.replace('~', '')
|
||||
query = query.replace('>', '')
|
||||
query = query.replace('<', '')
|
||||
query = re.sub(r'\s{2,}', ' ', query)
|
||||
return query
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue