mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 21:04:27 +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:
|
else:
|
||||||
flags = re.I
|
flags = re.I
|
||||||
|
|
||||||
|
flags |= re.UNICODE
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if self.search_mode.currentIndex() == 0:
|
if self.search_mode.currentIndex() == 0:
|
||||||
self.s_r_obj = re.compile(re.escape(unicode(self.search_for.text())), flags)
|
self.s_r_obj = re.compile(re.escape(unicode(self.search_for.text())), flags)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue