(host: string)
| 398 | // HTTPS remotes may include a non-standard port (e.g. ghe.corp.com:8443), |
| 399 | // which would cause a false mismatch. |
| 400 | const stripPort = (host: string): string => host.replace(/:\d+$/, ''); |
| 401 | const repoMatch = currentRepo.toLowerCase() === sessionRepo.toLowerCase(); |
| 402 | const hostMatch = !currentParsed || !sessionParsed || stripPort(currentParsed.host.toLowerCase()) === stripPort(sessionParsed.host.toLowerCase()); |
| 403 | if (repoMatch && hostMatch) { |
no outgoing calls
no test coverage detected