Before submitting#
Area#
packages/shared
Steps to reproduce#
Call cloneUrlForProtocol("https://user:tok@en@github.com/a/b.git", "ssh").
Expected behavior#
git@github.com:a/b.git (password may contain @; host is after the last userinfo @).
Actual behavior#
git@en@github.com:a/b.git — the regex stopped userinfo at the first @.
Impact#
Minor bug or occasional failure
Fix#
https://github.com/pingdotgg/t3code/pull/27845
Thanks for reporting this! #24005 fixed credential parsing on main in 7a633ce, including passwords containing
@.