src/vs/platform/extensionManagement/common/configRemotes.ts/stripPort
function stripPort(authority: string): string | null {
	const match = authority.match(AuthorityMatcher);
	return match ? match[2] : null;
}