Fixes username regex

This commit is contained in:
Mouse Reeve
2021-01-06 16:01:13 -08:00
parent 03a5f333e1
commit 54f27519df
3 changed files with 4 additions and 3 deletions

View File

@ -265,7 +265,7 @@ def search(request):
return JsonResponse([r.json() for r in book_results], safe=False)
# use webfinger for mastodon style account@domain.com username
if re.match(regex.full_username, query):
if re.match(r'\B%s' % regex.full_username, query):
outgoing.handle_remote_webfinger(query)
# do a local user search