Skip to content

Commit

Permalink
support urls that include {}[] characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Susanne Kunis committed Nov 7, 2024
1 parent 213bb61 commit 30278b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<a href='$&' target='_blank'>$&</a>");
return linkObjects(input);
};
Expand Down

0 comments on commit 30278b6

Please sign in to comment.