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

Function hasCommandWithArguments

src/hooks/useTypeahead.tsx:343–348  ·  view source on GitHub ↗
(isAtEndWithWhitespace: boolean, value: string)

Source from the content-addressed store, hash-verified

341 return null;
342}
343function hasCommandWithArguments(isAtEndWithWhitespace: boolean, value: string) {
344 // If value.endsWith(' ') but the user is not at the end, then the user has
345 // potentially gone back to the command in an effort to edit the command name
346 // (but preserve the arguments).
347 return !isAtEndWithWhitespace && value.includes(' ') && !value.endsWith(' ');
348}
349
350/**
351 * Hook for handling typeahead functionality for both commands and file paths

Callers 1

useTypeaheadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected