Browse Source

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

Fixes #13150
master
ThibG 4 years ago
committed by GitHub
parent
commit
6185bff4b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/account_search_service.rb

+ 1
- 1
app/services/account_search_service.rb 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?

Loading…
Cancel
Save