MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getFileName

Function getFileName

cli/src/hooks/use-suggestion-engine.ts:281–284  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

279 getAllPathsWithDirectories(nodes)
280
281const getFileName = (filePath: string): string => {
282 const lastSlash = filePath.lastIndexOf('/')
283 return lastSlash === -1 ? filePath : filePath.slice(lastSlash + 1)
284}
285
286const createHighlightIndices = (start: number, end: number): number[] => [
287 ...range(start, end),

Callers 2

filterFileMatchesFunction · 0.85
useSuggestionEngineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected