Set re.UNICODE correctly in linkify_text
This caused nicks with unicode characters to not be linkified on
Python 2. The error was introduced in commit
Fixes
@@ -3188,7 +3188,7 @@ def linkify_text(message, team, only_users=False):
return word
linkify_regex = r'(?:^|(?<=\s))([@#])([\w\(\)\'.-]+)'
- return re.sub(linkify_regex, linkify_word, message_escaped, re.UNICODE)
+ return re.sub(linkify_regex, linkify_word, message_escaped, flags=re.UNICODE)
def unfurl_blocks(message_json):
