From e900c0e65a7f955aba900c16ffe2491250a91934 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Mon, 7 Aug 2023 17:50:51 +0300 Subject: [PATCH] fix newline split --- matrix/plugin.json | 2 +- matrix/plugin.ts | 2 +- squeebot.repo.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/plugin.json b/matrix/plugin.json index 334aca9..03f374e 100644 --- a/matrix/plugin.json +++ b/matrix/plugin.json @@ -3,7 +3,7 @@ "name": "matrix", "description": "Matrix.org Service for Squeebot 3", "tags": ["service", "matrix"], - "version": "1.3.0", + "version": "1.3.1", "dependencies": ["control?"], "npmDependencies": ["matrix-bot-sdk@0.6.6"] } diff --git a/matrix/plugin.ts b/matrix/plugin.ts index d438171..514da70 100644 --- a/matrix/plugin.ts +++ b/matrix/plugin.ts @@ -396,7 +396,7 @@ class MatrixProtocol extends Protocol { msgtype, body: this.format.strip(response), format: 'org.matrix.custom.html', - formatted_body: response.replace('\n', '
'), + formatted_body: response.replace(/\n/g, '
'), }); return true; diff --git a/squeebot.repo.json b/squeebot.repo.json index 5fe8c38..4e7b7c9 100644 --- a/squeebot.repo.json +++ b/squeebot.repo.json @@ -3,7 +3,7 @@ "plugins": [ { "name": "matrix", - "version": "1.3.0" + "version": "1.3.1" } ], "typescript": true