(hostname: string)
| 241 | // 2. Removing www. is allowed: www.example.com -> example.com |
| 242 | // 3. Same host (with or without www.) is allowed: paths can change |
| 243 | const stripWww = (hostname: string) => hostname.replace(/^www\./, '') |
| 244 | const originalHostWithoutWww = stripWww(parsedOriginal.hostname) |
| 245 | const redirectHostWithoutWww = stripWww(parsedRedirect.hostname) |
| 246 | return originalHostWithoutWww === redirectHostWithoutWww |
no outgoing calls
no test coverage detected