(resolvedPath: string, dir: string)
| 13 | |
| 14 | /** Check if resolvedPath is within dir, using platform-aware separators. */ |
| 15 | export function isPathWithin(resolvedPath: string, dir: string): boolean { |
| 16 | return resolvedPath === dir || resolvedPath.startsWith(dir + path.sep); |
| 17 | } |
no outgoing calls
no test coverage detected