MCPcopy Index your code
hub / github.com/coder/mux / isMatchAllSearchPattern

Function isMatchAllSearchPattern

src/node/services/tools/bash.ts:178–183  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

176}
177
178function isMatchAllSearchPattern(pattern: string): boolean {
179 // Intentionally narrow: we only want to warn on obvious whole-file dump patterns
180 // (avoid warning on normal search).
181 const normalized = pattern.trim();
182 return normalized === "" || normalized === "^" || normalized === ".*";
183}
184
185function isRipgrepToken(token: string): boolean {
186 const trimmed = token.trim();

Callers 2

detectRipgrepFileDumpFunction · 0.85
detectGrepFileDumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected