MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getValueFromInput

Function getValueFromInput

src/components/PromptInput/inputModes.ts:23–29  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

21}
22
23export function getValueFromInput(input: string): string {
24 const mode = getModeFromInput(input)
25 if (mode === 'prompt') {
26 return input
27 }
28 return input.slice(1)
29}
30
31export function isInputModeCharacter(input: string): boolean {
32 return input === '!'

Callers 4

PromptInputFunction · 0.85
onTextPasteFunction · 0.85
useHistorySearchFunction · 0.85
acceptSuggestionTextFunction · 0.85

Calls 1

getModeFromInputFunction · 0.85

Tested by

no test coverage detected