Add target=_blank on links again, it got lost in earlier merge

This commit is contained in:
Tor Hveem 2013-10-12 17:23:04 +02:00
parent 9d8bdc0dc5
commit 6e1ec22fe4

View file

@ -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;