Open smilesrg opened 9 years ago
That is a good catch!
That doesn't work when emptyQuery
is set to true because that part of the check in _matcher
is not based on a regular expression.
I found it easier to assume you simply use a single character as delimiter and you'd never want to match when there's a word-character in front of that delimiter.
See pull request: https://github.com/jakiestfu/Mention.js/pull/52
how to ignore email entries when using @ token? Just use:
delimiter: '(^|\\s)@'
option. Please add it to description or fix issue right in plugin code.