Skip to content
Snippets Groups Projects
Commit 1b322b82 authored by deuce's avatar deuce
Browse files

This is probobly what RuneMaster has been groping for.

parent 569ab9d5
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +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\-._\?\,\/\\\+&amp;%\$#\=~\*]*))?[^,.\(\)<>&\s]/gi,function(str) {
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news)\:\/\/[\w\-\.]+\.[a-zA-Z]+(?::[\w]*)?(?:\/(?:[\w\-._\?\,\/\\\+&amp;%\$#\=~\*]*))?[^,.\(\)\s]/gi,function(str) {
str=str.replace(/&gt;.*/,'');
var ret='<a href="'+str+'" target="_blank">'+str+'</a>';
return(ret);}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment