MCPcopy Create free account
hub / github.com/arctic-cli/interface / normalizeWhitespace

Function normalizeWhitespace

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

Source from the content-addressed store, hash-verified

386
387export const WhitespaceNormalizedReplacer: Replacer = function* (content, find) {
388 const normalizeWhitespace = (text: string) => text.replace(/\s+/g, " ").trim()
389 const normalizedFind = normalizeWhitespace(find)
390
391 // Handle single line matches

Callers 1

edit.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected