MCPcopy Create free account
hub / github.com/codingmonk-yt/chat-app-latest / getFileName

Function getFileName

src/utils/getFileFormat.js:20–22  ·  view source on GitHub ↗
(fileUrl)

Source from the content-addressed store, hash-verified

18}
19
20export function getFileName(fileUrl) {
21 return fileUrl.substring(fileUrl.lastIndexOf('/') + 1).replace(/\.[^/.]+$/, '');
22}
23
24export function getFileFullName(fileUrl) {
25 return fileUrl.split('/').pop();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected