Commits

nakamura committed 23cdc6e

drop_entry: pass `re.UNICODE` flag to re.compile

  • Participants
  • Parent commits 4a47949

Comments (0)

Files changed (1)

File karintou/plugins/drop_entry.py

     classProvides(IFeedPlugin, IPlugin)
 
     def __init__(self, link=None, title=None):
-        self.linkRe = re.compile(link) if link is not None else None
-        self.titleRe = re.compile(title) if title is not None else None
+        self.linkRe = re.compile(link, re.UNICODE) \
+                if link is not None else None
+        self.titleRe = re.compile(title, re.UNICODE) \
+                if title is not None else None
 
     def on_Entry(self, feedEntry, siteTitle):
         if self.linkRe and self.titleRe: