Skip to content

Commit

Permalink
Fixed mentions regex to stop matching email addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Mar 1, 2013
1 parent 55252b5 commit d526da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/backbone/plugins/mentions.coffee
Expand Up @@ -2,7 +2,7 @@
# The show_activities addMessage method is the responsible of changing the look of a message body when a user is mentioned
class Kandan.Plugins.Mentions
@options:
regex: /@\S*/g
regex: /\B@\S+/g

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

Expand Down

0 comments on commit d526da8

Please sign in to comment.