From d397a7b3ea77be597e414b4883bc07f8016f0b35 Mon Sep 17 00:00:00 2001 From: d47081 Date: Thu, 1 Sep 2022 17:58:08 +0300 Subject: [PATCH] add yggdrasil ipv6 links support --- js/twister_formatpost.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 74c05bc..0d9ee4a 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -595,7 +595,9 @@ function htmlFormatMsg(msg, opt) { var markoutOpt = $.Options.postsMarkout.val; var mentionsChars = 'abcdefghijklmnopqrstuvwxyz_0123456789'; - var stopCharsTrailing = '/\\*~_-`.,:;?!%\'"[](){}^|«»…\u201C\u201D\u2026\u2014\u4E00\u3002\uFF0C\uFF1A\uFF1F\uFF01\u3010\u3011\u2047\u2048\u2049'; + // var stopCharsTrailing = '/\\*~_-`.,:;?!%\'"[](){}^|«»…\u201C\u201D\u2026\u2014\u4E00\u3002\uFF0C\uFF1A\uFF1F\uFF01\u3010\u3011\u2047\u2048\u2049'; + // remove [] filtering as could be a part of yggdrasil ipv6 links + var stopCharsTrailing = '/\\*~_-`.,:;?!%\'"(){}^|«»…\u201C\u201D\u2026\u2014\u4E00\u3002\uFF0C\uFF1A\uFF1F\uFF01\u3010\u3011\u2047\u2048\u2049'; var stopCharsTrailingUrl = stopCharsTrailing.slice(1); var whiteSpaces = ' \f\n\r\t\v​\u00A0\u1680\u180E\u2000​\u2001\u2002​\u2003\u2004\u2005\u2006​\u2007\u2008​\u2009\u200A\u2028\u2029​\u202F\u205F\u3000'; var whiteSpacesUrl = '\'\"' + whiteSpaces;