MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sanitizeId

Function sanitizeId

packages/plugins/mcp/src/sdk/codex-plugins.ts:224–228  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

222 .replace(/^_+|_+$/g, "");
223
224const sanitizeId = (value: string): string =>
225 value
226 .toLowerCase()
227 .replace(/[^a-z0-9]+/g, "-")
228 .replace(/^-+|-+$/g, "");
229
230/** Bound on inlined icon bytes. The bundled icons run 100KB–1MB; anything
231 * past this is not worth inlining into a list response for a 20px avatar. */

Callers 1

scanCachedPluginFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected