(label: string, env: HostSuffixEnv)
| 195 | * cases (bare suffix, multi-label, unparseable label). Callers use this |
| 196 | * to decide whether the request should be handled by the host-based |
| 197 | * branch (which may still return 404) or fall through to cookie-based |
| 198 | * routing. Case-insensitive. |
| 199 | */ |
| 200 | export function hostMatchesInstanceSuffix(host: string, env: HostSuffixEnv): boolean { |
| 201 | return host.toLowerCase().endsWith(hostSuffix(env).toLowerCase()); |
| 202 | } |
no test coverage detected