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 #1521

Signed-off-by: Ferass El Hafidi <[email protected]>
  • Loading branch information
Ferass El Hafidi authored and funderscore1 committed Jul 28, 2024
1 parent d0e2623 commit 71af6a3
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 71af6a3

Please sign in to comment.