Skip to content

Commit

Permalink
Fix description in csv report when commas or new lines are present
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaferri committed Sep 24, 2024
1 parent bafeadf commit cfe999c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const getReportCSV = async (data: ReportTimeEntry[]): Promise<string> =>
entry.project.type,
entry.project.plannedHours,
entry.hours,
entry.description,
'"' + entry.description + '"',
entry.startHour,
entry.endHour,
].join(',') + '\n';
Expand Down

0 comments on commit cfe999c

Please sign in to comment.