Metadata search and replace, make the regular expressions unicode aware

This commit is contained in:
Kovid Goyal 2011-12-01 10:09:31 +05:30
parent 184ffa4d5c
commit a4a9b15fa6

View File

@ -743,6 +743,8 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
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)