MCPcopy Create free account
hub / github.com/codeaashu/claude-code / replaceUltraplanKeyword

Function replaceUltraplanKeyword

src/utils/ultraplan/keyword.ts:120–127  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

118 * Preserves the user's casing of the "plan" suffix.
119 */
120export function replaceUltraplanKeyword(text: string): string {
121 const [trigger] = findUltraplanTriggerPositions(text)
122 if (!trigger) return text
123 const before = text.slice(0, trigger.start)
124 const after = text.slice(trigger.end)
125 if (!(before + after).trim()) return ''
126 return before + trigger.word.slice('ultra'.length) + after
127}
128

Callers 1

processUserInputBaseFunction · 0.85

Calls 1

Tested by

no test coverage detected