mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Metadata search and replace, make the regular expressions unicode aware
This commit is contained in:
parent
184ffa4d5c
commit
a4a9b15fa6
@ -743,6 +743,8 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
|
|||||||
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…
x
Reference in New Issue
Block a user