From cfe999cf7be95aba7c55b981ee0ef20679a18e7b Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 24 Sep 2024 09:38:48 +0200 Subject: [PATCH] Fix description in csv report when commas or new lines are present --- src/utils/report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/report.ts b/src/utils/report.ts index cb777ec..1282b02 100644 --- a/src/utils/report.ts +++ b/src/utils/report.ts @@ -97,7 +97,7 @@ export const getReportCSV = async (data: ReportTimeEntry[]): Promise => entry.project.type, entry.project.plannedHours, entry.hours, - entry.description, + '"' + entry.description + '"', entry.startHour, entry.endHour, ].join(',') + '\n';