jakiestfu / Mention.js

Lightweight wrapper for adding @user mention functionality to Twitter Bootstraps Typeahead plugin
http://jakiestfu.github.com/Mention.js/
MIT License
747 stars 144 forks source link

Do not match when there's a word character before the delimiter. #52

Open AlexHaan-i opened 7 years ago

AlexHaan-i commented 7 years ago

Do not match when there's a word character before the delimiter. Also supports the emptyQuery option with value true. This completely prevents triggers on email addresses.

AlexHaan-i commented 7 years ago

Couldn't get a good negative look behind working. So I settled for using trim on the results.