diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-07-22 09:58:35 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-07-22 09:58:35 +0200 |
commit | d799fe208233d0c564736021de34c184c17f23e3 (patch) | |
tree | b1e22aa3ea75bc6a9e466dd717ce21e0834975d3 /app/models/account.rb | |
parent | 0a61b000e3f10e9be3d8ae1cccf53caa3877a55a (diff) | |
parent | 76ff45230630c32dd01fd45c89557e092a81b27f (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/account.rb')
-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 ee8caebcc..9627cc608 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -62,7 +62,7 @@ class Account < ApplicationRecord ) USERNAME_RE = /[a-z0-9_]+([a-z0-9_\.-]+[a-z0-9_]+)?/i - MENTION_RE = /(?<=^|[^\/[:word:]])@((#{USERNAME_RE})(?:@[[:alnum:]\.\-]+[[:alnum:]]+)?)/i + MENTION_RE = /(?<=^|[^\/[:word:]])@((#{USERNAME_RE})(?:@[[:word:]\.\-]+[[:word:]]+)?)/i URL_PREFIX_RE = /\Ahttp(s?):\/\/[^\/]+/ include Attachmentable |