Skip to content

Commit

Permalink
Resolve #1724
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Aug 27, 2024
1 parent 9d488b0 commit 6ebf273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ' '
);
});

Expand Down

0 comments on commit 6ebf273

Please sign in to comment.