Fix: @mention dialect matches too often

This commit is contained in:
Jens Maier 2015-05-03 18:30:53 +02:00
parent 83b7620cb2
commit 23cde96a1b
1 changed files with 1 additions and 1 deletions

View File

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