plugins: (url) do not return the whole message

This commit is contained in:
Vivien Didelot 2013-10-14 15:18:00 -04:00
parent 97da1928de
commit 8fea1c072e

View file

@ -127,7 +127,7 @@ plugins.factory('userPlugins', function() {
var urlPlugin = new Plugin(function(message) { var urlPlugin = new Plugin(function(message) {
var url = message.match(urlRegexp); var url = message.match(urlRegexp);
if (url) { if (url) {
return '<a target="_blank" href="' + url[0] + '">' + message + '</a>'; return '<a target="_blank" href="' + url[0] + '">' + url[0] + '</a>';
} }
return null; return null;