Skip to content

Commit

Permalink
Allow mentioning inside of a word ivirabyan#65
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Virabyan committed Oct 15, 2016
1 parent 5c07857 commit dc0c592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.mentions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class MentionsBase

_getMatcher: ->
allowedChars = '[^' + @options.trigger + ']'
return '\\B[' + @options.trigger + '](' + allowedChars + '{0,20})'
return '[' + @options.trigger + '](' + allowedChars + '{0,20})'

_markupMention: (mention) ->
return "@[#{mention.name}](#{mention.uid})"
Expand Down
2 changes: 1 addition & 1 deletion jquery.mentions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc0c592

Please sign in to comment.