From 0c3f16e5f6555c389121ad76e2849a524beb1046 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 21 Dec 2021 16:08:17 +0530 Subject: [PATCH] Use 's' flag with regex if available --- src/domain/session/room/timeline/deserialize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js index 77eb670e..fd1e3449 100644 --- a/src/domain/session/room/timeline/deserialize.js +++ b/src/domain/session/room/timeline/deserialize.js @@ -345,7 +345,7 @@ class Deserializer { } export function parseHTMLBody(platform, mediaRepository, html) { - html = html.replace(/.+<\/mx-reply>/, ""); + html = html.replace(/.+<\/mx-reply>/s, ""); const parseResult = platform.parseHTML(html); const deserializer = new Deserializer(parseResult, mediaRepository); const parts = deserializer.parseAnyNodes(parseResult.rootNodes);