diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-09-02 10:52:09 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-09-02 10:52:09 +0200 |
commit | f9185c72a9aeaaa09eec6186776108dafa27d3fd (patch) | |
tree | 2cf834a3719e8ab485d57d3f448df887bdc2bdae /app | |
parent | e7e04b46d750f5e2addfd9650991727101d76910 (diff) | |
parent | 2b18f7a9436c29ff948b1c1fe9b777435d1b03c1 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app')
-rw-r--r-- | app/models/account.rb | 2 |
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 |