(path: string)
| 360 | * string. A path that is only separators, or empty, suggests nothing. |
| 361 | */ |
| 362 | export function projectNameFor(path: string): string { |
| 363 | const trimmed = path.replace(/[\\/]+$/, ''); |
| 364 | const segment = trimmed.split(/[\\/]/).pop() ?? ''; |
| 365 | return segment; |
| 366 | } |
| 367 | |
| 368 | /** The address of a project in this window: the page reloads with it. */ |
| 369 | export function projectHref(name: string): string { |
no outgoing calls
no test coverage detected