fix complex text

This commit is contained in:
Yuri Kuznetsov
2020-08-25 18:11:38 +03:00
parent 4e588f6d0e
commit 0a5ae621b4
-3
View File
@@ -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) {