MCPcopy
hub / github.com/callumalpass/tasknotes / taskReferencePathCandidates

Function taskReferencePathCandidates

src/api/TaskNotesAPI.ts:3338–3345  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

3336}
3337
3338function taskReferencePathCandidates(path: string): string[] {
3339 const normalizedPath = normalizePath(path);
3340 const candidates = [normalizedPath];
3341 if (!/\.md$/iu.test(normalizedPath)) {
3342 candidates.push(`${normalizedPath}.md`);
3343 }
3344 return candidates;
3345}
3346
3347function uniqueTasks(tasks: TaskInfo[]): TaskInfo[] {
3348 const seen = new Set<string>();

Callers 1

Calls 1

normalizePathFunction · 0.90

Tested by

no test coverage detected