Add target=_blank on links again, it got lost in earlier merge
This commit is contained in:
parent
9d8bdc0dc5
commit
6e1ec22fe4
|
@ -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 New Issue