MCPcopy Index your code
hub / github.com/simstudioai/sim / mentionifyIntegrations

Function mentionifyIntegrations

apps/sim/blocks/integration-matcher.ts:94–100  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

92 * `@` are left untouched.
93 */
94export 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

Callers 2

user-input.tsxFile · 0.90
storeCuratedPromptFunction · 0.85

Calls 2

getIntegrationMatcherFunction · 0.85
replaceMethod · 0.65

Tested by

no test coverage detected