(uri: string)
| 212 | |
| 213 | /** The last path segment of a URI, which is what a lifeline is labelled with. */ |
| 214 | export function baseNameOf(uri: string): string { |
| 215 | const path = uri.split('?')[0].split('#')[0]; |
| 216 | const segments = path.split('/'); |
| 217 | return segments[segments.length - 1] || path; |
| 218 | } |
| 219 | |
| 220 | // --------------------------------------------------------------------------- |
| 221 | // Der Kasten |
no outgoing calls
no test coverage detected