(path: string)
| 1 | export function decodeUrlPathVariants(path: string): string[] { |
| 2 | const variants = [path]; |
| 3 | try { |
| 4 | const decoded = decodeURIComponent(path); |
| 5 | if (decoded !== path) variants.unshift(decoded); |
| 6 | } catch { |
| 7 | // Malformed percent sequences may be literal filesystem names. |
| 8 | } |
| 9 | |
| 10 | return variants; |
| 11 | } |
no outgoing calls
no test coverage detected