MCPcopy Create free account
hub / github.com/Effect-TS/effect / foldLineBreak

Function foldLineBreak

packages/effect/src/encoding/Yaml.ts:406–406  ·  view source on GitHub ↗
(blankLines: number)

Source from the content-addressed store, hash-verified

404const isMergeKey = (text: string): boolean => text === "<<"
405
406const foldLineBreak = (blankLines: number): string => blankLines === 0 ? " " : "\n".repeat(blankLines)
407
408// Fold plain flow scalars line by line to avoid quadratic whitespace-regex backtracking.
409const foldFlowLines = (input: string): string => {

Callers 4

foldFlowLinesFunction · 0.85
foldQuotedLinesFunction · 0.85
parsePlainValueMethod · 0.85
parseQuotedValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected