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