Skip to content
Snippets Groups Projects
Commit 5acadced authored by runemaster's avatar runemaster
Browse files

Bug Fix RegEx ... missing ")"

parent 92f9e9e0
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,6 @@ function idx_to_user(fromidx)
}
function make_links(str) {
var str_link=str.replace(/(?:http|https|ftp|telnet|gopher|irc)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]+(?::[a-zA-Z0-9]*)?(?:\/(?:[a-zA-Z0-9\-._\?\,\/\\\+&%\$#\=~]*)?[^,.\s])/gi,'<a href="$&" target="_blank">$&</a>');
return(str_link)
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]+(?::[a-zA-Z0-9]*)?(?:\/(?:[a-zA-Z0-9\-._\?\,\/\\\+&%\$#\=~]*))?[^,.\s]/gi,'<a href="$&" target="_blank">$&</a>');
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