summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGared <mu.stefan@googlemail.com>2014-01-19 19:23:11 +0100
committerGared <mu.stefan@googlemail.com>2014-01-19 19:23:11 +0100
commit3715535f863b44fc6438fb4a9ead1c1fd3a627f7 (patch)
treecc3ca708eb704ae3c74ac6176c9d9eee9fa6252e /src
parentbe4adec1228ca6629f042511217681edd98885e2 (diff)
downloadetherpad-lite-3715535f863b44fc6438fb4a9ead1c1fd3a627f7.zip
Fix #2058 Add square brackets to url characters
Diffstat (limited to 'src')
-rw-r--r--src/static/js/linestylefilter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/linestylefilter.js b/src/static/js/linestylefilter.js
index 034822a4..cb1ee1d5 100644
--- a/src/static/js/linestylefilter.js
+++ b/src/static/js/linestylefilter.js
@@ -259,7 +259,7 @@ linestylefilter.getRegexpFilter = function(regExp, tag)
linestylefilter.REGEX_WORDCHAR = /[\u0030-\u0039\u0041-\u005A\u0061-\u007A\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u1FFF\u3040-\u9FFF\uF900-\uFDFF\uFE70-\uFEFE\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDC]/;
-linestylefilter.REGEX_URLCHAR = new RegExp('(' + /[-:@a-zA-Z0-9_.,~%+\/\\?=&#!;()$]/.source + '|' + linestylefilter.REGEX_WORDCHAR.source + ')');
+linestylefilter.REGEX_URLCHAR = new RegExp('(' + /[-:@a-zA-Z0-9_.,~%+\/\\?=&#!;()\[\]$]/.source + '|' + linestylefilter.REGEX_WORDCHAR.source + ')');
linestylefilter.REGEX_URL = new RegExp(/(?:(?:https?|s?ftp|ftps|file|nfs):\/\/|mailto:|www\.)/.source + linestylefilter.REGEX_URLCHAR.source + '*(?![:.,;])' + linestylefilter.REGEX_URLCHAR.source, 'g');
linestylefilter.getURLFilter = linestylefilter.getRegexpFilter(
linestylefilter.REGEX_URL, 'url');