Skip to content

Commit

Permalink
Fix description in csv report when commas or new lines are present (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaferri authored Sep 24, 2024
1 parent b4c7612 commit b6ae681
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 b6ae681

Please sign in to comment.