| 9 | // ------------------------------------------------------- |
| 10 | |
| 11 | interface SearchInput { |
| 12 | pattern: string; // content search term or regex |
| 13 | path?: string; // directory prefix, e.g. "packages/web/src" |
| 14 | include?: string; // glob for filenames, e.g. "*.ts" or "**/*.{ts,tsx}" |
| 15 | } |
| 16 | |
| 17 | function globToFileRegexp(glob: string): string { |
| 18 | const re = globToRegexp(glob, { extended: true, globstar: true }); |
nothing calls this directly
no outgoing calls
no test coverage detected