mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3424 from Elberet/patch-1
Fix: @mention dialect matches too often
This commit is contained in:
commit
c9d72e8845
@ -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})/m,
|
||||
matcher: /^(@[A-Za-z0-9][A-Za-z0-9_]{0,40})/,
|
||||
wordBoundary: true,
|
||||
|
||||
emitter: function(matches) {
|
||||
|
Loading…
Reference in New Issue
Block a user