Added logic to correctly parse 'git@example.com' endpoints.