MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / escapeLabel

Function escapeLabel

src/api/routes/index.router.ts:110–114  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

108 res.set('Cache-Control', 'no-cache, no-store, must-revalidate');
109
110 const escapeLabel = (value: unknown) =>
111 String(value ?? '')
112 .replace(/\\/g, '\\\\')
113 .replace(/\n/g, '\\n')
114 .replace(/"/g, '\\"');
115
116 const lines: string[] = [];
117

Callers 1

index.router.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected