MCPcopy Create free account
hub / github.com/bytebase/bytebase / isValidProjectName

Function isValidProjectName

frontend/src/react/lib/resourceName.ts:23–25  ·  view source on GitHub ↗
(name: string | undefined)

Source from the content-addressed store, hash-verified

21}
22
23export function isValidProjectName(name: string | undefined): name is string {
24 return Boolean(name?.startsWith(projectNamePrefix));
25}

Callers 8

ProjectSegmentFunction · 0.90
ProjectSwitchPanelFunction · 0.90
ProjectSwitchPopoverFunction · 0.90
buildGroupFilterFunction · 0.90
buildDatabaseFilterFunction · 0.90
createProjectSliceFunction · 0.90
redirectFunction · 0.90
useAppProjectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected