MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / titleFromName

Function titleFromName

packages/app-core/src/components/ExternalFileApp.tsx:41–43  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

39const programmatic = Annotation.define<boolean>()
40
41function titleFromName(name: string): string {
42 return name.replace(/\.(md|markdown)$/i, '') || name
43}
44
45export function ExternalFileApp(): JSX.Element {
46 const prefs = useMemo(() => loadFloatingPrefs(), [])

Callers 1

ExternalFileAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected