MCPcopy Create free account
hub / github.com/error311/FileRise / formatFolderName

Function formatFolderName

public/js/fileListView.js:6038–6043  ·  view source on GitHub ↗
(folder, sourceId = '')

Source from the content-addressed store, hash-verified

6036}
6037
6038export function formatFolderName(folder, sourceId = '') {
6039 if (folder === "root") return getRootLabel(sourceId);
6040 return folder
6041 .replace(/[_-]+/g, " ")
6042 .replace(/\b\w/g, char => char.toUpperCase());
6043}
6044
6045// Expose inline DOM helpers.
6046window.toggleRowSelection = toggleRowSelection;

Callers 1

Calls 1

getRootLabelFunction · 0.70

Tested by

no test coverage detected