From 8eee0cf0cabed537107d0b3f896c35a6f062b174 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 10 Nov 2015 15:25:12 -0500 Subject: [PATCH] FIX: Mentioning was broken when username ended with an underscore --- app/assets/javascripts/discourse/dialects/mention_dialect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/dialects/mention_dialect.js b/app/assets/javascripts/discourse/dialects/mention_dialect.js index 4f1b8b8da17..9579f04afe5 100644 --- a/app/assets/javascripts/discourse/dialects/mention_dialect.js +++ b/app/assets/javascripts/discourse/dialects/mention_dialect.js @@ -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) {