Signed-off-by: yyh <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: CodingOnStar <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Coding On Star <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: -LAN- <[email protected]> Co-authored-by: statxc <[email protected]>
5 lines
164 B
TypeScript
5 lines
164 B
TypeScript
export function extractPluginId(provider: string): string {
|
|
const parts = provider.split('/')
|
|
return parts.length >= 2 ? `${parts[0]}/${parts[1]}` : provider
|
|
}
|