From 4787801c0d947ae4706e34f3bdf2ac497ae88007 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jun 2013 13:57:19 +0530 Subject: [PATCH] Get Books: Fix title/author based query case-sensitive Get Books: Fix searching using the title/author being case-sensitive and therefore not returning results if uppercase characters were used in the query. --- src/calibre/gui2/store/search/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/store/search/models.py b/src/calibre/gui2/store/search/models.py index 0ca3b5a2de..b1ccd0e40b 100644 --- a/src/calibre/gui2/store/search/models.py +++ b/src/calibre/gui2/store/search/models.py @@ -451,6 +451,7 @@ class SearchFilter(SearchQueryParser): elif locvalue in ('author2', 'title2'): m = self.IN_MATCH vals = re.sub(r'(^|\s)(and|not|or|a|the|is|of|,)(\s|$)', ' ', accessor(sr)).split(' ') + query = query.lower() else: vals = [accessor(sr)] if self._match(query, vals, m):