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
1 changed files with 1 additions and 1 deletions

View File

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