about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-09-08 13:24:54 +0200
committerGitHub <noreply@github.com>2021-09-08 13:24:54 +0200
commit127aaa81742d57a7cee782c7d7fa3ec83488fba5 (patch)
tree2cf834a3719e8ab485d57d3f448df887bdc2bdae /app/models/account.rb
parente7e04b46d750f5e2addfd9650991727101d76910 (diff)
parentf9185c72a9aeaaa09eec6186776108dafa27d3fd (diff)
Merge pull request #1594 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 2cfa77615..69a12c7bc 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -59,7 +59,7 @@ class Account < ApplicationRecord
   )
 
   USERNAME_RE   = /[a-z0-9_]+([a-z0-9_\.-]+[a-z0-9_]+)?/i
-  MENTION_RE    = /(?<=^|[^\/[:word:]])@((#{USERNAME_RE})(?:@[[:word:]\.\-]+[a-z0-9]+)?)/i
+  MENTION_RE    = /(?<=^|[^\/[:word:]])@((#{USERNAME_RE})(?:@[[:word:]\.\-]+[[:word:]]+)?)/i
   URL_PREFIX_RE = /\Ahttp(s?):\/\/[^\/]+/
 
   include AccountAssociations