Skip to content
Snippets Groups Projects
Commit 57374b6e authored by runemaster's avatar runemaster
Browse files

Include <> chars in RegEx

parent e41820c3
No related branches found
No related tags found
No related merge requests found
......@@ -183,9 +183,9 @@ 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) {
var ret='<a href="'+str+'" target="_blank">'+str+'</a>';
return(ret);}
);
);
return(str);
}
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