mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
Simple workaround for username highlighting for long names
This commit is contained in:
parent
7fbf162666
commit
107003576e
@ -5,7 +5,9 @@
|
||||
**/
|
||||
Discourse.Dialect.inlineRegexp({
|
||||
start: '@',
|
||||
matcher: /^(@[A-Za-z0-9][A-Za-z0-9_]{2,14})/m,
|
||||
// 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,
|
||||
wordBoundary: true,
|
||||
|
||||
emitter: function(matches) {
|
||||
|
Loading…
Reference in New Issue
Block a user