// Splits a project name into first name, last name, and email when it is in the format "First Last " export const splitName = ( projectName = '', ): { name?: string; email?: string; } => { const regex = /^(.*?)(?:\s*<([^>]+)>)?$/; const match = projectName.match(regex); const [, name, email] = match ?? []; return { name: name.trim() || undefined, email }; }; export const enum ResourceType { Credential = 'credential', Workflow = 'workflow', }