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

Function normalize

e2e/scenarios/tool-descriptions.test.ts:410–416  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

408 .map((tool) => String(tool.owner))
409 .find((value) => value.length > 0);
410 const normalize = (text: string): string => {
411 let out = text
412 .replaceAll(openapiSlug, "openapi-fixture")
413 .replaceAll(graphqlSlug, "graphql-fixture");
414 if (owner) out = out.replaceAll(owner, "<owner>");
415 return out;
416 };
417
418 const sections = [
419 ["OpenAPI fixture (`Orders API`)", openapiTools],

Callers 2

serve.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected