(fullUrl: string)
| 25 | * `[fullUrl, '']` when there is no token fragment. |
| 26 | */ |
| 27 | export function splitTokenFragment(fullUrl: string): [string, string] { |
| 28 | const marker = '#token='; |
| 29 | const idx = fullUrl.indexOf(marker); |
| 30 | return idx < 0 ? [fullUrl, ''] : [fullUrl.slice(0, idx), fullUrl.slice(idx)]; |
| 31 | } |
| 32 | |
| 33 | export interface AccessUrlLine { |
| 34 | /** Fixed-width label including trailing padding, e.g. `"Local: "`. */ |
no outgoing calls
no test coverage detected