({ pattern, path, include }: SearchInput)
| 22 | } |
| 23 | |
| 24 | function buildRipgrepCommand({ pattern, path, include }: SearchInput): string { |
| 25 | const parts = ['rg', `"${pattern.replace(/"/g, '\\"')}"`]; |
| 26 | if (path) parts.push(path); |
| 27 | if (include) parts.push(`--glob "${include}"`); |
| 28 | return parts.join(' '); |
| 29 | } |
| 30 | |
| 31 | function buildZoektQuery({ pattern, path, include }: SearchInput): string { |
| 32 | const parts: string[] = [`"${pattern.replace(/"/g, '\\"')}"`]; |
no outgoing calls
no test coverage detected