( targetPath: string, filePath: string, )
| 277 | * @param filePath - normalized absolute path |
| 278 | */ |
| 279 | export function isFileInTargetPath( |
| 280 | targetPath: string, |
| 281 | filePath: string, |
| 282 | ): boolean { |
| 283 | return ( |
| 284 | isSameFilePath(targetPath, filePath) || |
| 285 | isParentDirectory(targetPath, filePath) |
| 286 | ) |
| 287 | } |
| 288 | |
| 289 | const windowsDriveRE = /^[A-Z]:/i |
| 290 |
no test coverage detected