Fix PGP/Inline view

This commit is contained in:
the-djmaze 2023-03-07 15:42:13 +01:00
parent f5045b9759
commit 4a9bc53558

View file

@ -317,7 +317,7 @@ export class MessageModel extends AbstractModel {
body.innerHTML = plainToHtml(
(this.plain()
? this.plain()
.replace(/-----BEGIN PGP (SIGNED MESSAGE-----(\r?\n[a-z][^\r\n]+)+|SIGNATURE-----[\s\S]*)/, '')
.replace(/-----BEGIN PGP (SIGNED MESSAGE-----(\r?\n[^\r\n]+)+|SIGNATURE-----[\s\S]*)/sg, '')
.trim()
: htmlToPlain(body.innerHTML)
)