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

Function extractGroupEmail

frontend/src/react/stores/app/group.ts:21–24  ·  view source on GitHub ↗
(emailResource: string)

Source from the content-addressed store, hash-verified

19const groupNamePrefix = "groups/";
20
21export const extractGroupEmail = (emailResource: string) => {
22 const matches = emailResource.match(/^(?:group:|groups\/)(.+)$/);
23 return matches?.[1] ?? emailResource;
24};
25
26export const ensureGroupIdentifier = (id: string) => {
27 const email = extractGroupEmail(id);

Callers 4

getMemberBindingFunction · 0.90
getMemberBindingsFunction · 0.90
ensureGroupIdentifierFunction · 0.70
createGroupSliceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected