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

Function isValidOrgSlug

packages/core/api/src/account/org-slug.ts:133–134  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

131 * URL namespace (`classifyMcpPath` claims only `org_`-prefixed segments).
132 */
133export const isValidOrgSlug = (slug: string): boolean =>
134 ORG_SLUG_PATTERN.test(slug) && !RESERVED_ORG_SLUGS.has(slug);
135
136/**
137 * Derive a slug candidate from an organization name. Lowercases, strips

Callers 12

getActiveOrgSlugFunction · 0.90
org-slug.test.tsFile · 0.90
ssr-gate.tsFile · 0.90
firstPathSegmentFunction · 0.90
handlers.tsFile · 0.90
AuthGateFunction · 0.90
orgSelectorSegmentFunction · 0.90
db.test.tsFile · 0.90
resolveOrgSlugFunction · 0.90
resolveOrgSlugFunction · 0.90
generateOrgSlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected