Skip to main content

neutralise

@retinue/monorepo


@retinue/monorepo / backend/src / neutralise

Function: neutralise()

neutralise(value): string

Defined in: backend/src/skills/context.ts:43

Strips what could end a delimited block or retinue a heading in the rendered prompt.

Narrow on purpose: a skill description is prose a customer wrote, and mangling it would make the catalogue unreadable. Newlines go because the section is one line per skill and a description containing a line break could otherwise invent a row; backticks and the sequences that open a fenced block go because the surrounding render uses them structurally.

Parameters​

value​

string

Returns​

string