MCPcopy Index your code
hub / github.com/continuedev/continue / prepareQueryForRipgrep

Function prepareQueryForRipgrep

core/util/regexValidator.ts:149–159  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

147 * @returns Object with sanitized query and any warnings
148 */
149export function prepareQueryForRipgrep(query: string): {
150 query: string;
151 warning?: string;
152} {
153 const validation = validateAndSanitizeRegex(query);
154
155 return {
156 query: validation.sanitizedQuery || query,
157 warning: validation.warning,
158 };
159}

Callers 2

grepSearchImplFunction · 0.90

Calls 1

validateAndSanitizeRegexFunction · 0.85

Tested by

no test coverage detected