Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
541
const basenameOf = (p: string) =>
542
p
543
.replace(/[/\\]+$/,
""
)
544
.split(/[\\/]/)
545
.pop() ??
""
546
547
const folderNameVariants = (name: string) => {
548
const n = name.toLowerCase()
Callers
1
chooseIconName
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected