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

Function sanitizeSlug

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

Source from the content-addressed store, hash-verified

217};
218
219const sanitizeSlug = (value: string): string =>
220 value
221 .toLowerCase()
222 .replace(/[^a-z0-9]+/g, "_")
223 .replace(/^_+|_+$/g, "");
224
225const sanitizeId = (value: string): string =>
226 value

Callers 1

scanCachedPluginFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected