(text: string)
| 92 | * `@` are left untouched. |
| 93 | */ |
| 94 | export function mentionifyIntegrations(text: string): string { |
| 95 | const { regex } = getIntegrationMatcher() |
| 96 | if (!regex || !text) return text |
| 97 | return text.replace(regex, (match: string, _name: string, offset: number) => |
| 98 | offset > 0 && text[offset - 1] === '@' ? match : `@${match}` |
| 99 | ) |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Stores a CURATED prompt (a suggested action, template, or showcase CTA — never |
no test coverage detected