From 5846e90372dc295fe345ba83df8301816d2c7809 Mon Sep 17 00:00:00 2001 From: Amir Date: Fri, 23 Jul 2021 02:04:09 +0430 Subject: [PATCH] fix(hyperlinking): fixed url detection --- src/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.js b/src/main.js index aa24d5e6..d27ff2c9 100644 --- a/src/main.js +++ b/src/main.js @@ -162,9 +162,6 @@ const mixin = { const regex = /(((https?:\/\/)|(www\.))[^\s]+)/g; if (!string) return ''; return string.replace(regex, (url) => { - if (!url.match('^https?:\\/\\/')) { // If URL does not have http(s), we're adding it manually. - return `${url}` - } return `${url}` }) }