aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-03-27 19:00:52 +0000
committerRyan Huber <rhuber@gmail.com>2017-03-27 19:00:52 +0000
commiteac914db38774444718923f3fe8a8d8b2fc758bf (patch)
treea46d0018be8aa7bee5faf3d1e2f086dc53b4fe6a
parentc31dee0b3ffcc3f2065869bc39456af907a4c9a4 (diff)
downloadwee-slack-eac914db38774444718923f3fe8a8d8b2fc758bf.tar.gz
fix broken linkifying wrong-ly
-rw-r--r--wee_slack.py2
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()