MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / SearchInput

Interface SearchInput

packages/web/tools/globToRegexpPlayground.ts:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9// -------------------------------------------------------
10
11interface 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
17function globToFileRegexp(glob: string): string {
18 const re = globToRegexp(glob, { extended: true, globstar: true });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected