fixed http links

This commit is contained in:
Jeena Paradies 2012-10-31 02:12:10 +01:00
parent 0d39948c7e
commit 1bea90c9c3

View file

@ -549,7 +549,7 @@ Core.prototype.findUsernamesFor = function(query) {
/* Helper functions */
function replaceURLWithHTMLLinks(text, entities, message_node) {
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_()|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
var exp = /(([^\^]https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_()|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
return text.replace(exp, "<a href='$1'>$1</a>");
/*