fixed http links
This commit is contained in:
parent
0d39948c7e
commit
1bea90c9c3
1 changed files with 1 additions and 1 deletions
2
Core.js
2
Core.js
|
@ -549,7 +549,7 @@ Core.prototype.findUsernamesFor = function(query) {
|
||||||
/* Helper functions */
|
/* Helper functions */
|
||||||
|
|
||||||
function replaceURLWithHTMLLinks(text, entities, message_node) {
|
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>");
|
return text.replace(exp, "<a href='$1'>$1</a>");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Reference in a new issue