diff --git a/app/models/account.rb b/app/models/account.rb index c2dc77d932b..d43cae038ff 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -39,7 +39,7 @@ # class Account < ApplicationRecord - MENTION_RE = /(?:^|[^\/\w])@([a-z0-9_]+(?:@[a-z0-9\.\-]+[a-z0-9]+)?)/i + MENTION_RE = /(?:^|[^\/[:word:]])@([a-z0-9_]+(?:@[a-z0-9\.\-]+[a-z0-9]+)?)/i include AccountAvatar include AccountHeader