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

Function extractDatabaseGroupName

frontend/src/utils/v1/databaseGroup.ts:1–5  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1export const extractDatabaseGroupName = (name: string) => {
2 const pattern = /(?:^|\/)databaseGroups\/([^/]+)(?:$|\/)/;
3 const matches = name.match(pattern);
4 return matches?.[1] ?? "";
5};

Callers 6

ProjectPlanDashboardPageFunction · 0.90
DatabaseGroupTargetFunction · 0.90
preCreateIssueFunction · 0.90
isValidDatabaseGroupNameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected