Skip to content

Commit

Permalink
Merge pull request Expensify#45734 from tienifr/fix/22832
Browse files Browse the repository at this point in the history
fix: redundant spaces around code block text in report name
  • Loading branch information
robertjchen authored Jul 26, 2024
2 parents cdda43b + 6c7d81a commit 4727f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3444,7 +3444,7 @@ function getReportName(report: OnyxEntry<Report>, policy?: OnyxEntry<Policy>, pa
}

const isAttachment = ReportActionsUtils.isReportActionAttachment(!isEmptyObject(parentReportAction) ? parentReportAction : undefined);
const reportActionMessage = getReportActionMessage(parentReportAction, report?.parentReportID, report?.reportID ?? '').replace(/(\r\n|\n|\r)/gm, ' ');
const reportActionMessage = getReportActionMessage(parentReportAction, report?.parentReportID, report?.reportID ?? '').replace(/(\n+|\r\n|\n|\r)/gm, ' ');
if (isAttachment && reportActionMessage) {
return `[${Localize.translateLocal('common.attachment')}]`;
}
Expand Down

0 comments on commit 4727f72

Please sign in to comment.