MCPcopy Create free account
hub / github.com/arctic-cli/interface / basenameOf

Function basenameOf

packages/ui/src/components/file-icon.tsx:541–545  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

539}
540
541const basenameOf = (p: string) =>
542 p
543 .replace(/[/\\]+$/, "")
544 .split(/[\\/]/)
545 .pop() ?? ""
546
547const folderNameVariants = (name: string) => {
548 const n = name.toLowerCase()

Callers 1

chooseIconNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected