Merge pull request #2841 from lidel/fix-min-username
FIX: fix @mentions for 1 character usernames
This commit is contained in:
commit
d4f9228058
|
@ -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_]{1,40})/m,
|
||||
matcher: /^(@[A-Za-z0-9][A-Za-z0-9_]{0,40})/m,
|
||||
wordBoundary: true,
|
||||
|
||||
emitter: function(matches) {
|
||||
|
|
Loading…
Reference in New Issue