mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
9 lines
333 B
TypeScript
9 lines
333 B
TypeScript
const GENERIC_SUPPORT_DESCRIPTION = /^Public support knowledge for (.+)\.$/;
|
|
|
|
export function getKnowledgeDisplayDescription(description: string): string {
|
|
const match = description.match(GENERIC_SUPPORT_DESCRIPTION);
|
|
if (!match) return description;
|
|
|
|
return `Setup and troubleshooting guidance for ${match[1]} in Composio.`;
|
|
}
|