From 5bd7c77b68f08ab4771f3d80d5191def9d634204 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 30 Sep 2022 13:36:57 +0200 Subject: [PATCH] chore: use jsDoc to explain param --- src/helpers/parseSubtasksViaIndention.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helpers/parseSubtasksViaIndention.ts b/src/helpers/parseSubtasksViaIndention.ts index 5c9589b7..8a451bdd 100644 --- a/src/helpers/parseSubtasksViaIndention.ts +++ b/src/helpers/parseSubtasksViaIndention.ts @@ -9,8 +9,10 @@ function cleanupTitle(title: string) { const spaceRegex = /^ */ -// taskTitles should be multiple lines of task tiles with indention to declare their parent/subtask -// relation between each other. +/** + * @param taskTitles should be multiple lines of task tiles with indention to declare their parent/subtask + * relation between each other. + */ export function parseSubtasksViaIndention(taskTitles: string): TaskWithParent[] { const titles = taskTitles.split(/[\r\n]+/)