MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getBasename

Function getBasename

webview-ui/src/utils/context-mentions.ts:23–25  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

21}
22
23function getBasename(filepath: string): string {
24 return filepath.split("/").pop() || filepath
25}
26
27export function insertMention(
28 text: string,

Callers 1

getContextMenuOptionsFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected