Fix error when looking handle with surrounding spaces (#18225)

This commit is contained in:
Claire
2022-05-02 01:00:08 +02:00
committed by GitHub
parent 33f3818d66
commit 9a3be0ad68
2 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class ResolveAccountService < BaseService
@username = @account.username
@domain = @account.domain
else
@username, @domain = uri.split('@')
@username, @domain = uri.strip.gsub(/\A@/, '').split('@')
end
@domain = begin