forked from mystiq/hydrogen-web
Use 's' flag with regex if available
This commit is contained in:
parent
cba044eff1
commit
0c3f16e5f6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue