From 5c4fc0b9e9a00f46bb8d069b5f584c69108b1828 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Fri, 28 Feb 2020 15:36:01 +0100 Subject: 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 f5cfdab. Fixes #747 --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index cbc492b..2239ccd 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -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): -- cgit