MCPcopy Index your code
hub / github.com/anomalyco/opencode / normalizeWhitespace

Function normalizeWhitespace

packages/opencode/src/tool/edit.ts:428–428  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

426
427export const WhitespaceNormalizedReplacer: Replacer = function* (content, find) {
428 const normalizeWhitespace = (text: string) => text.replace(/\s+/g, " ").trim()
429 const normalizedFind = normalizeWhitespace(find)
430
431 // Handle single line matches

Callers 1

edit.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected