mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Use 's' flag with regex if available
This commit is contained in:
parent
cba044eff1
commit
0c3f16e5f6
@ -345,7 +345,7 @@ class Deserializer {
|
||||
}
|
||||
|
||||
export function parseHTMLBody(platform, mediaRepository, html) {
|
||||
html = html.replace(/<mx-reply>.+<\/mx-reply>/, "");
|
||||
html = html.replace(/<mx-reply>.+<\/mx-reply>/s, "");
|
||||
const parseResult = platform.parseHTML(html);
|
||||
const deserializer = new Deserializer(parseResult, mediaRepository);
|
||||
const parts = deserializer.parseAnyNodes(parseResult.rootNodes);
|
||||
|
Loading…
Reference in New Issue
Block a user