aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
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 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()