(start: number, end?: number)
| 30 | } |
| 31 | |
| 32 | const range = (start: number, end?: number) => { |
| 33 | if (end === undefined) { |
| 34 | return Array.from({ length: start }, (_, i) => i) |
| 35 | } |
| 36 | return Array.from({ length: end - start }, (_, i) => start + i) |
| 37 | } |
| 38 | |
| 39 | // Check if query contains slashes for path-segment matching |
| 40 | const querySegments = normalized.split('/') |
no test coverage detected