Skip to content

Commit d526da8

Browse files
committed
Fixed mentions regex to stop matching email addresses
1 parent 55252b5 commit d526da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/backbone/plugins/mentions.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# The show_activities addMessage method is the responsible of changing the look of a message body when a user is mentioned
33
class Kandan.Plugins.Mentions
44
@options:
5-
regex: /@\S*/g
5+
regex: /\B@\S+/g
66

77
template: _.template '''<span class="mention"><%= mention %></span>'''
88

0 commit comments

Comments
 (0)