diff --git a/web/lib/msgslib.ssjs b/web/lib/msgslib.ssjs index 62dac55df747a54c5b7fd32d27bd6be87d5f9c22..436f5f28bf553d5fad7f904345958a954be3ff57 100644 --- a/web/lib/msgslib.ssjs +++ b/web/lib/msgslib.ssjs @@ -183,8 +183,8 @@ function idx_to_user(fromidx) } function make_links(str) { - str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[\w]*)?(?:\/(?:[\w\-._\?\,\/\\\+&;%\$#\=~\*]*))?/gi,function(str) { -// | Protocol |Hostname | Path | + str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[0-9]*)?(?:\/(?:[\w\-._\?\,\/\\\+&;%\$#\=~\*]*))?/gi,function(str) { +// | Protocol |Hostname |TLD | Port | Path | var ret='<a href="'+str+'" target="_blank">'+str+'</a>'; var m=str.match(/^(.*)(>|[,.\)])$/); if(m!=null)