MCPcopy Create free account
hub / github.com/anomalyco/opencode / folderNameVariants

Function folderNameVariants

packages/ui/src/components/file-icon.tsx:552–555  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

550const basenameOf = (p: string) => p.split("\\").join("/").split("/").filter(Boolean).pop() ?? ""
551
552const folderNameVariants = (name: string) => {
553 const n = name.toLowerCase()
554 return [n, `.${n}`, `_${n}`, `__${n}__`]
555}
556
557const dottedSuffixesDesc = (name: string) => {
558 const n = name.toLowerCase()

Callers 1

chooseIconNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected