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

Function sanitizeId

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

Source from the content-addressed store, hash-verified

223 .replace(/^_+|_+$/g, "");
224
225const sanitizeId = (value: string): string =>
226 value
227 .toLowerCase()
228 .replace(/[^a-z0-9]+/g, "-")
229 .replace(/^-+|-+$/g, "");
230
231/** Bound on inlined icon bytes. The bundled icons run 100KB–1MB; anything
232 * 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