(plugin: string)
| 49 | * This is intentional as marketplace names should not contain '@'. |
| 50 | */ |
| 51 | export function parsePluginIdentifier(plugin: string): ParsedPluginIdentifier { |
| 52 | if (plugin.includes('@')) { |
| 53 | const parts = plugin.split('@') |
| 54 | return { name: parts[0] || '', marketplace: parts[1] } |
| 55 | } |
| 56 | return { name: plugin } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Build a plugin ID from name and marketplace |
no outgoing calls
no test coverage detected