From d6803372f245b7a580b1a6e281fa4fb6ce4abb26 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:54:01 +0100 Subject: [PATCH] Fix url replacement. Closes #1534 --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 0737f6b8..c7437bbf 100644 --- a/src/main.js +++ b/src/main.js @@ -183,7 +183,7 @@ const mixin = { const emailRegex = /([\w-\\.]+@(?:[\w-]+\.)+[\w-]{2,4})/g; return string .replace(urlRegex, url => { - if (url.endsWith("")) return url; + if (url.endsWith("") || url.endsWith("${url}`; }) .replace(emailRegex, email => {