MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / escapeTomlBasicString

Function escapeTomlBasicString

apps/kimi-code/src/tui/config.ts:171–180  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

169}
170
171function escapeTomlBasicString(value: string): string {
172 return value
173 .replaceAll('\\', '\\\\')
174 .replaceAll('"', '\\"')
175 .replaceAll('\b', '\\b')
176 .replaceAll('\t', '\\t')
177 .replaceAll('\n', '\\n')
178 .replaceAll('\f', '\\f')
179 .replaceAll('\r', '\\r');
180}

Callers 1

renderTuiConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected