(path: string)
| 101 | })); |
| 102 | |
| 103 | const firstPathSegment = (path: string): string | null => { |
| 104 | const pathname = path.split(/[?#]/, 1)[0] ?? ""; |
| 105 | const segment = pathname.split("/")[1]; |
| 106 | return segment && isValidOrgSlug(segment) ? segment : null; |
| 107 | }; |
| 108 | |
| 109 | const requestedOrgSelectorFromReturnTo = (returnTo: string): string | null => |
| 110 | firstPathSegment(returnTo); |
no test coverage detected