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

Function joinBom

packages/core/src/patch.ts:83–86  ·  view source on GitHub ↗
(text: string, bom: boolean)

Source from the content-addressed store, hash-verified

81}
82
83export function joinBom(text: string, bom: boolean) {
84 const stripped = splitBom(text).text
85 return bom ? `\uFEFF${stripped}` : stripped
86}
87
88function parseAdd(lines: ReadonlyArray<string>, start: number) {
89 const content: string[] = []

Callers

nothing calls this directly

Calls 1

splitBomFunction · 0.70

Tested by

no test coverage detected