MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / normalizeProjectList

Function normalizeProjectList

src/modals/taskEditChanges.ts:210–219  ·  view source on GitHub ↗
(projects: string[])

Source from the content-addressed store, hash-verified

208}
209
210function normalizeProjectList(projects: string[]): string[] {
211 return projects
212 .map((project) => {
213 if (!project || typeof project !== "string") return "";
214 const trimmed = project.trim();
215 if (!trimmed) return "";
216 return parseLinkToPath(trimmed).trim();
217 })
218 .filter((project) => project.length > 0);
219}
220
221function buildBlockingUpdates(input: TaskEditChangeInput): {
222 blockingUpdates: BlockingUpdates;

Callers 1

buildTaskEditChangesFunction · 0.85

Calls 1

parseLinkToPathFunction · 0.90

Tested by

no test coverage detected