Skip to content

Commit

Permalink
src/bridge/MatrixHandler.ts: add s modifier to REPLY_REGEX
Browse files Browse the repository at this point in the history
Fixes matrix-org#1521

Signed-off-by: Ferass El Hafidi <[email protected]>
  • Loading branch information
Ferass El Hafidi authored and Ferass El Hafidi committed Aug 3, 2024
1 parent d32ea38 commit 37e183c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bridge/MatrixHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ export class MatrixHandler {
const bridgeIntent = this.ircBridge.getAppServiceBridge().getIntent();
// strips out the quotation of the original message, if needed
const replyText = (body: string): string => {
const REPLY_REGEX = /> <(.*?)>(.*?)\n\n([\s\S]*)/;
const REPLY_REGEX = /> <(.*?)>(.*?)\n\n([\s\S]*)/s;
const match = REPLY_REGEX.exec(body);
if (match === null || match.length !== 4) {
return body;
Expand Down

0 comments on commit 37e183c

Please sign in to comment.