neutralise
@forge/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 forge 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