From aee5a9ca43d9ee249121256e820e50988eed4415 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Wed, 5 Jul 2017 15:39:53 -0500 Subject: [PATCH] fix: Use https for links without a scheme. --- modules/UI/side_pannels/chat/Replacement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/UI/side_pannels/chat/Replacement.js b/modules/UI/side_pannels/chat/Replacement.js index fb16d4702..d87d7fac9 100644 --- a/modules/UI/side_pannels/chat/Replacement.js +++ b/modules/UI/side_pannels/chat/Replacement.js @@ -27,7 +27,7 @@ export function linkify(inputText) { //URLs starting with "www." (without // before it, or it'd re-link the ones done above). replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim; - replacedText = replacedText.replace(replacePattern2, '$1$2'); + replacedText = replacedText.replace(replacePattern2, '$1$2'); //Change email addresses to mailto: links. replacePattern3 = /(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim;