mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1724
This commit is contained in:
parent
9d488b0e61
commit
6ebf273390
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue