From 6ebf273390413037613a4d0c1aa5244763731a27 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 28 Aug 2024 00:24:28 +0200 Subject: [PATCH] Resolve #1724 --- dev/Common/Html.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 0557204dd..f3a9d82c7 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -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 + ' ' ); });