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

Function globToFileRegexp

packages/web/src/features/tools/glob.ts:15–18  ·  view source on GitHub ↗
(glob: string)

Source from the content-addressed store, hash-verified

13const TRUNCATION_MESSAGE = `(Results truncated. Consider using a more specific pattern, specifying a repo, or increasing the limit.)`;
14
15function globToFileRegexp(glob: string): string {
16 const re = globToRegexp(glob, { extended: true, globstar: true });
17 return re.source.replace(/^\^/, '');
18}
19
20const globShape = {
21 pattern: z

Callers 1

glob.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected