Add target=_blank on links again, it got lost in earlier merge
This commit is contained in:
parent
9d8bdc0dc5
commit
6e1ec22fe4
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ plugins.factory('userPlugins', function() {
|
|||
var urlPattern = /(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/;
|
||||
var url = message.match(urlPattern);
|
||||
if (url) {
|
||||
return '<a href="' + url[0] + '">' + message + '</a>';
|
||||
return '<a target="_blank" href="' + url[0] + '">' + message + '</a>';
|
||||
}
|
||||
return null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue