From 30278b64bb39134a3f1101b600d4a82256e6eaeb Mon Sep 17 00:00:00 2001 From: Susanne Kunis Date: Thu, 7 Nov 2024 16:17:58 +0100 Subject: [PATCH] support urls that include {}[] characters --- .../static/webclient/javascript/ome.webclient.actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js b/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js index 8612e6f384..0bd7a36f40 100644 --- a/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js +++ b/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js @@ -61,7 +61,7 @@ OME.getURLParameter = function(key) { }; var linkify = function(input) { - var regex = /(https?|ftp|file):\/\/[-a-zA-Z0-9+&@#/%?=~_|!:,.;$]*[-a-zA-Z0-9+&@#/%=~_|$]/g; + var regex = /(https?|ftp|file):\/\/[-a-zA-Z0-9+&@#/%?=~_{}[\]|!:,.;$]*[-a-zA-Z0-9+&@#/%=~_{}[\]|$]/g; input = input.replace(regex, "$&"); return linkObjects(input); };