(compiledPatterns: RegExp[], filePath: string)
| 210 | } |
| 211 | |
| 212 | function matchesCompiledPatterns(compiledPatterns: RegExp[], filePath: string): boolean { |
| 213 | return compiledPatterns.some(regex => regex.test(filePath)); |
| 214 | } |
| 215 | |
| 216 | function isPathAllowed(filePath: string, blacklist: RegExp[], whitelist: RegExp[]): boolean { |
| 217 | const normalizedPath = resolveFilePath(filePath); |