(requested: string)
| 92 | * chokepoint's absolute-path rule with nothing to catch. |
| 93 | */ |
| 94 | export function toRequestPath(requested: string): string { |
| 95 | return requested.replace(/\\/g, '/').replace(/^\.\//, ''); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Validate a viewer-supplied path, THEN look it up in the index. |
no outgoing calls
no test coverage detected