diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-03-05 18:08:19 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-03-05 18:08:19 +0100 |
commit | 4fb95c91fbf808bafa581b8976d94ec36eee8619 (patch) | |
tree | b371348da6ebfddb60c81794c0954d641f54a314 /app/models/account.rb | |
parent | 5f4e402204c9da289d1a6b5e3902bf2c9cfe61c1 (diff) |
Fix wrongful matching of last period in extended usernames
Fix anchor tags in some wikipedia URLs being matches as a hashtag
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 2fa6bab71..078078945 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -4,7 +4,7 @@ class Account < ApplicationRecord include Targetable include PgSearch - MENTION_RE = /(?:^|[^\/\w])@([a-z0-9_]+(?:@[a-z0-9\.\-]+)?)/i + MENTION_RE = /(?:^|[^\/\w])@([a-z0-9_]+(?:@[a-z0-9\.\-]+[a-z0-9]+)?)/i IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif'].freeze # Local users |