(name: string)
| 180 | }; |
| 181 | |
| 182 | export const getInstanceAndDatabaseId = (name: string): string[] => { |
| 183 | const tokens = getNameParentTokens(name, [ |
| 184 | instanceNamePrefix, |
| 185 | databaseNamePrefix, |
| 186 | ]); |
| 187 | |
| 188 | if (tokens.length !== 2) { |
| 189 | return ["", ""]; |
| 190 | } |
| 191 | |
| 192 | return tokens; |
| 193 | }; |
| 194 | |
| 195 | export const extractGroupEmail = (emailResource: string) => { |
| 196 | const matches = emailResource.match(/^(?:group:|groups\/)(.+)$/); |
nothing calls this directly
no test coverage detected