(path: string)
| 113 | /** Route paths as people read them: '/%C3%A9dit' reads '/édit'. Reserved characters stay encoded |
| 114 | * (decodeURI), and a path that is not valid percent-encoding stays as indexed. */ |
| 115 | export const readableRoute = (path: string): string => { try { return decodeURI(path); } catch { return path; } }; |
| 116 | const routePrefixOf = (label: string) => `/${label.replace(/^[A-Z]+\s+/, '').split('/').filter(Boolean)[0] ?? ''}`; |
| 117 | /** Characters a compact route chip shows before it cuts the label (spatial-architecture.css, 112px at 10px). */ |
| 118 | const COMPACT_LABEL_CHARS = 14; |
no outgoing calls
no test coverage detected