Fix error when searching for URLs that contain the mention syntax (#13151)

Fixes #13150
lolsob-rspec
ThibG 2020-03-08 15:42:20 +01:00 committed by GitHub
parent 49f5db61bc
commit ef73f37f36
1 changed files with 1 additions and 1 deletions

View File

@ -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?