Commit 3ee18c20 authored by Yann Leboulanger's avatar Yann Leboulanger

handle unicode chars in emoticons. fixes #3227

parent 03499998
......@@ -2329,7 +2329,8 @@ class Interface:
# because emoticons match later (in the string) they need to be after
# basic matches that may occur earlier
emot_and_basic_pattern = basic_pattern + emoticons_pattern
self.emot_and_basic_re = re.compile(emot_and_basic_pattern, re.IGNORECASE)
self.emot_and_basic_re = re.compile(emot_and_basic_pattern,
re.IGNORECASE + re.UNICODE)
# at least one character in 3 parts (before @, after @, after .)
self.sth_at_sth_dot_sth_re = re.compile(r'\S+@\S+\.\S*[^\s)?]')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment