plugins: (url) do not return the whole message
This commit is contained in:
parent
97da1928de
commit
8fea1c072e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue