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