(value: string)
| 7 | } |
| 8 | |
| 9 | function normalizeMoveTarget(value: string): string { |
| 10 | return value |
| 11 | .trim() |
| 12 | .replace(/\\/g, '/') |
| 13 | .replace(/\/{2,}/g, '/') |
| 14 | .replace(/^\/+|\/+$/g, '') |
| 15 | } |
| 16 | |
| 17 | function initialTargetFromPath(path: string): string { |
| 18 | const parts = path.split('/').filter(Boolean) |
no outgoing calls
no test coverage detected