MCPcopy Create free account
hub / github.com/anomalyco/opencode / normalized

Function normalized

packages/core/src/patch.ts:186–186  ·  view source on GitHub ↗
(left: string, right: string)

Source from the content-addressed store, hash-verified

184const rstrip = (left: string, right: string) => left.trimEnd() === right.trimEnd()
185const trim = (left: string, right: string) => left.trim() === right.trim()
186const normalized = (left: string, right: string) => normalize(left.trim()) === normalize(right.trim())
187const normalize = (value: string) =>
188 value
189 .replace(/[‘’‚‛]/g, "'")

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected