(value: string)
| 58 | const tidy = (value: string): string => value.replace(/[\u0000-\u001f\u007f]/g, '').slice(0, 180); |
| 59 | const unique = <T>(values: T[]): T[] => [...new Set(values)]; |
| 60 | const idPart = (value: string): string => encodeURIComponent(value); |
| 61 | |
| 62 | function normal(path: string): string { |
| 63 | const absolute = path.startsWith('/') || /^[A-Za-z]:[\\/]/.test(path); |