diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-03-27 19:00:52 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-03-27 19:00:52 +0000 |
commit | eac914db38774444718923f3fe8a8d8b2fc758bf (patch) | |
tree | a46d0018be8aa7bee5faf3d1e2f086dc53b4fe6a | |
parent | c31dee0b3ffcc3f2065869bc39456af907a4c9a4 (diff) | |
download | wee-slack-eac914db38774444718923f3fe8a8d8b2fc758bf.tar.gz |
fix broken linkifying wrong-ly
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 44e848a..0157306 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2247,7 +2247,7 @@ def linkify_text(message, team, channel): channels = team.get_channel_map() message = message.split(' ') for item in enumerate(message): - targets = re.match('.*([@#])([\w.-]+[\w. -])(\W*)', item[1]) + targets = re.match('^\s*([@#])([\w.-]+[\w. -])(\W*)', item[1]) #print targets if targets and targets.groups()[0] == '@': #print targets.groups() |