mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Resolve #900
This commit is contained in:
parent
489ed81c84
commit
722bec1a1a
1 changed files with 5 additions and 1 deletions
|
@ -167,6 +167,8 @@ export const
|
||||||
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
||||||
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
|
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
|
||||||
.replace(/<span class="preview-text"[\s\S]+?<\/span>/, '')
|
.replace(/<span class="preview-text"[\s\S]+?<\/span>/, '')
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/900
|
||||||
|
.replace(/\u2028/g,' ')
|
||||||
.trim();
|
.trim();
|
||||||
html = '';
|
html = '';
|
||||||
|
|
||||||
|
@ -543,7 +545,9 @@ export const
|
||||||
plainToHtml = plain => {
|
plainToHtml = plain => {
|
||||||
plain = plain.toString()
|
plain = plain.toString()
|
||||||
.replace(/\r/g, '')
|
.replace(/\r/g, '')
|
||||||
.replace(/^>[> ]>+/gm, ([match]) => (match ? match.replace(/[ ]+/g, '') : match));
|
.replace(/^>[> ]>+/gm, ([match]) => (match ? match.replace(/[ ]+/g, '') : match))
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/900
|
||||||
|
.replace(/\u2028/g,' ');
|
||||||
|
|
||||||
let bIn = false,
|
let bIn = false,
|
||||||
bDo = true,
|
bDo = true,
|
||||||
|
|
Loading…
Reference in a new issue