(path: string)
| 134 | } |
| 135 | |
| 136 | export function cleanPath(path: string) { |
| 137 | // remove double slashes |
| 138 | return path.replace(/\/{2,}/g, '/') |
| 139 | } |
| 140 | |
| 141 | export function trimPathLeft(path: string) { |
| 142 | return path === '/' ? path : path.replace(/^\/{1,}/, '') |
no test coverage detected