(name: string)
| 2 | import type { Project } from "@/types/proto-es/v1/project_service_pb"; |
| 3 | |
| 4 | export const extractProjectResourceName = (name: string) => { |
| 5 | const pattern = /(?:^|\/)projects\/([^/]+)(?:$|\/)/; |
| 6 | const matches = name.match(pattern); |
| 7 | return matches?.[1] ?? ""; |
| 8 | }; |
| 9 | |
| 10 | export function projectV1Name(project: Project) { |
| 11 | if (isDefaultProject(project.name)) { |
no outgoing calls
no test coverage detected