From 5316d1778d531f5f6d2bb41152c62fef14c16141 Mon Sep 17 00:00:00 2001 From: David Cui Date: Fri, 14 May 2021 16:31:01 -0700 Subject: [PATCH] fix negative csv value display to remove leading character --- kibana-reports/server/routes/utils/dataReportHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana-reports/server/routes/utils/dataReportHelpers.ts b/kibana-reports/server/routes/utils/dataReportHelpers.ts index 296a2a25..3f589c2d 100644 --- a/kibana-reports/server/routes/utils/dataReportHelpers.ts +++ b/kibana-reports/server/routes/utils/dataReportHelpers.ts @@ -227,7 +227,7 @@ function sanitize(doc: any) { continue if ( doc[field].toString().startsWith('+') || - doc[field].toString().startsWith('-') || + (doc[field].toString().startsWith('-') && typeof doc[field] !== "number") || doc[field].toString().startsWith('=') || doc[field].toString().startsWith('@') ) {