mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Resolve #1724
This commit is contained in:
parent
9d488b0e61
commit
6ebf273390
|
@ -676,7 +676,9 @@ export const
|
|||
forEach('a', a => {
|
||||
let txt = a.textContent, href = a.href;
|
||||
return a.replaceWith(
|
||||
txt.trim() == href || href.includes('mailto:') ? txt : txt + ' ' + href + ' '
|
||||
txt.replace(/[\s()-]+/g, '').includes(href.replace(/^[a-z]:/, '').replace(/[\s()-]+/g, ''))
|
||||
? txt
|
||||
: txt + ' ' + href + ' '
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue