From 0a5ae621b4db2d0ae62d3401a09080a90e82b720 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 25 Aug 2020 18:11:38 +0300 Subject: [PATCH] fix complex text --- client/src/view-helper.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/src/view-helper.js b/client/src/view-helper.js index 61ad8d20f9..723f68324a 100644 --- a/client/src/view-helper.js +++ b/client/src/view-helper.js @@ -29,7 +29,6 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () { var ViewHelper = function (options) { - this.urlRegex = /(^|[^\(])(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; this._registerHandlebarsHelpers(); this.mdBeforeList = [ @@ -316,8 +315,6 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () { transfromMarkdownText: function (text, options) { text = text || ''; - text = text.replace(this.urlRegex, '$1[$2]($2)'); - text = Handlebars.Utils.escapeExpression(text).replace(/>+/g, '>'); this.mdBeforeList.forEach(function (item) {