From 8fea1c072ebf4526f17c80908e6a9dd0bd10cfce Mon Sep 17 00:00:00 2001 From: Vivien Didelot Date: Mon, 14 Oct 2013 15:18:00 -0400 Subject: [PATCH] plugins: (url) do not return the whole message --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index c84e2a7..af04f2b 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -127,7 +127,7 @@ plugins.factory('userPlugins', function() { var urlPlugin = new Plugin(function(message) { var url = message.match(urlRegexp); if (url) { - return '' + message + ''; + return '' + url[0] + ''; } return null;