aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-02-28 15:36:01 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-02-28 15:40:32 +0100
commit5c4fc0b9e9a00f46bb8d069b5f584c69108b1828 (patch)
tree0c4de3283bdf0ff432461fb32694271307566f06 /wee_slack.py
parent95f1ac707629e947a19011a08deb231586d0a516 (diff)
downloadwee-slack-5c4fc0b9e9a00f46bb8d069b5f584c69108b1828.tar.gz
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
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
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):