Skip to content

Commit 37e183c

Browse files
Ferass El HafidiFerass El Hafidi
authored andcommitted
src/bridge/MatrixHandler.ts: add s modifier to REPLY_REGEX
Fixes #1521 Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
1 parent d32ea38 commit 37e183c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bridge/MatrixHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ export class MatrixHandler {
13731373
const bridgeIntent = this.ircBridge.getAppServiceBridge().getIntent();
13741374
// strips out the quotation of the original message, if needed
13751375
const replyText = (body: string): string => {
1376-
const REPLY_REGEX = /> <(.*?)>(.*?)\n\n([\s\S]*)/;
1376+
const REPLY_REGEX = /> <(.*?)>(.*?)\n\n([\s\S]*)/s;
13771377
const match = REPLY_REGEX.exec(body);
13781378
if (match === null || match.length !== 4) {
13791379
return body;

0 commit comments

Comments
 (0)