FIX: Mentioning was broken when username ended with an underscore

This commit is contained in:
Robin Ward 2015-11-10 15:25:12 -05:00
parent fa27f0a2ea
commit 8eee0cf0ca

View File

@ -7,7 +7,7 @@ Discourse.Dialect.inlineRegexp({
start: '@',
// NOTE: we really should be using SiteSettings here, but it loads later in process
// also, if we do, we must ensure serverside version works as well
matcher: /^(@[A-Za-z0-9][A-Za-z0-9_\.\-]{0,40}[A-Za-z0-9])/,
matcher: /^(@[A-Za-z0-9][A-Za-z0-9_\.\-]{0,40}[A-Za-z0-9\_])/,
wordBoundary: true,
emitter: function(matches) {