(pathname: string)
| 5 | } |
| 6 | |
| 7 | function stripTrailingSlash(pathname: string): string { |
| 8 | return pathname.length > 1 && pathname.endsWith("/") ? pathname.slice(0, -1) : pathname; |
| 9 | } |
| 10 | |
| 11 | export function getAppProxyBasePathFromPathname(pathname: string): string | null { |
| 12 | if (hasUnsafeLeadingDoubleSlash(pathname)) { |
no outgoing calls
no test coverage detected