mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 19:16:07 +01:00
Metadata search and replace, make the regular expressions unicode aware
This commit is contained in:
parent
184ffa4d5c
commit
a4a9b15fa6
1 changed files with 2 additions and 0 deletions
|
|
@ -743,6 +743,8 @@ def s_r_paint_results(self, txt):
|
|||
else:
|
||||
flags = re.I
|
||||
|
||||
flags |= re.UNICODE
|
||||
|
||||
try:
|
||||
if self.search_mode.currentIndex() == 0:
|
||||
self.s_r_obj = re.compile(re.escape(unicode(self.search_for.text())), flags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue