From da695ca0e2244b2c9c3481c7d3c699f210752a5c Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 4 Aug 2020 23:50:10 +0200 Subject: [PATCH] fix(Delegate): short description replace by space --- src/controllers/DelegateController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/DelegateController.ts b/src/controllers/DelegateController.ts index d2cb545..b0c2260 100644 --- a/src/controllers/DelegateController.ts +++ b/src/controllers/DelegateController.ts @@ -83,7 +83,7 @@ export default class DelegateController { // sanitize short description if (Utils.isStrUsable(proposedVersion.shortDescription)) { - proposedVersion.shortDescription = proposedVersion.shortDescription.replace(/\n/g, '') + proposedVersion.shortDescription = proposedVersion.shortDescription.replace(/\n/g, ' ') } // sanitize long description