MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getProjectFilenameValues

Function getProjectFilenameValues

src/utils/filenameGenerator.ts:260–269  ·  view source on GitHub ↗
(projects: string[] | undefined)

Source from the content-addressed store, hash-verified

258}
259
260function getProjectFilenameValues(projects: string[] | undefined): string[] {
261 if (!Array.isArray(projects)) {
262 return [];
263 }
264
265 return projects
266 .map((project) => getProjectDisplayName(project).trim())
267 .filter((project) => project.length > 0)
268 .map((project) => sanitizeForFilename(project));
269}
270
271function getProjectId(projectName: string | undefined): string {
272 if (!projectName) {

Callers 1

generateCustomFilenameFunction · 0.85

Calls 2

getProjectDisplayNameFunction · 0.90
sanitizeForFilenameFunction · 0.85

Tested by

no test coverage detected