(uri: string)
| 126 | |
| 127 | /** Last path segment of a URI or path, for the purpose sentence. */ |
| 128 | export function displayFile(uri: string): string { |
| 129 | const path = uri.split('?')[0].split('#')[0]; |
| 130 | const segments = path.split('/'); |
| 131 | return decodeURIComponent(segments[segments.length - 1] || path); |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * The one sentence the twin leads with. |