Skip to content

Commit a7518cf

Browse files
committed
comment: Clarify a comment, since string replacement only changes first occurence
1 parent 30b7a73 commit a7518cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Renderer/QueryResultsRenderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ export class QueryResultsRenderer {
572572
//in the description with the new file path
573573
for (const link of taskLinks) {
574574
const fullLink = `[[${task.path}${link.link}|${link.displayText}]]`;
575+
// Replace the first instance of this link:
575576
description = description.replace(link.original, fullLink);
576577
}
577578

0 commit comments

Comments
 (0)