From 4dfc05ca92cb87e8f2305af179dd2ce510d7e085 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 22 Aug 2021 08:02:28 +0100 Subject: [PATCH] remove www from bookmark tile presentation url bar --- src/component/bookmarkTile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/bookmarkTile/index.js b/src/component/bookmarkTile/index.js index b8f12c1b..19369643 100644 --- a/src/component/bookmarkTile/index.js +++ b/src/component/bookmarkTile/index.js @@ -515,7 +515,7 @@ const BookmarkTile = function({ if (isValidString(bookmarkData.link.url)) { - this.element.url.text.textContent = trimString(bookmarkData.link.url).replace(/^https?\:\/\//i, '').replace(/\/+$/, ''); + this.element.url.text.textContent = trimString(bookmarkData.link.url).replace(/^https?\:\/\//i, '').replace('www.', '').replace(/\/+$/, ''); this.element.url.text.title = trimString(bookmarkData.link.url);