MCPcopy
hub / github.com/github/awesome-copilot / getFileName

Function getFileName

website/src/scripts/modal.ts:112–114  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

110}
111
112function getFileName(filePath: string): string {
113 return filePath.split("/").pop() || filePath;
114}
115
116function isMarkdownFile(filePath: string): boolean {
117 return /\.(md|markdown|mdx)$/i.test(filePath);

Callers 4

updateModalTitleFunction · 0.85
getLanguageForFileFunction · 0.85
openFileModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected