fix newline split

This commit is contained in:
Evert Prants 2023-08-07 17:50:51 +03:00
parent ffb7a91a84
commit e900c0e65a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 3 additions and 3 deletions

View File

@ -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"]
}

View File

@ -396,7 +396,7 @@ class MatrixProtocol extends Protocol {
msgtype,
body: this.format.strip(response),
format: 'org.matrix.custom.html',
formatted_body: response.replace('\n', '<br />'),
formatted_body: response.replace(/\n/g, '<br />'),
});
return true;

View File

@ -3,7 +3,7 @@
"plugins": [
{
"name": "matrix",
"version": "1.3.0"
"version": "1.3.1"
}
],
"typescript": true