From 9fe410efac71ba730a5dd91cf889ba12b855ab87 Mon Sep 17 00:00:00 2001 From: tienifr Date: Fri, 19 Jul 2024 06:36:11 +0700 Subject: [PATCH] fix: redudant spaces around code block in report name --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index aef1c3a4f916..4fc60b46ea55 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3381,7 +3381,7 @@ function getReportName(report: OnyxEntry, policy?: OnyxEntry, pa } const isAttachment = ReportActionsUtils.isReportActionAttachment(!isEmptyObject(parentReportAction) ? parentReportAction : undefined); - const parentReportActionMessage = getReportActionMessage(parentReportAction, report?.parentReportID, report?.reportID ?? '').replace(/(\r\n|\n|\r)/gm, ' '); + const parentReportActionMessage = getReportActionMessage(parentReportAction, report?.parentReportID, report?.reportID ?? '').replace(/(\n+|\r\n|\n|\r)/gm, ' '); if (isAttachment && parentReportActionMessage) { return `[${Localize.translateLocal('common.attachment')}]`; }