parent
4a4cd686c1
commit
6185bff4b3
|
@ -171,7 +171,7 @@ class AccountSearchService < BaseService
|
|||
end
|
||||
|
||||
def username_complete?
|
||||
query.include?('@') && "@#{query}" =~ Account::MENTION_RE
|
||||
query.include?('@') && "@#{query}" =~ /\A#{Account::MENTION_RE}\Z/
|
||||
end
|
||||
|
||||
def likely_acct?
|
||||
|
|
Reference in New Issue