Skip to content
Permalink
Browse files

New tab for bitches

  • Loading branch information...
Depado committed Dec 3, 2014
1 parent 9ea152b commit 8eac8c09f17f9cc040e24feb5db36a49e5a609b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
4 app.js
@@ -58,9 +58,9 @@ io.sockets.on('connection', function (socket) {
if (validUrl.isUri(arr[i])){
var re = new RegExp(/\.(jpeg|jpg|gif|png)$/);
if (arr[i].match(re)) {
arr[i] = "<img src='" + arr[i] + "' style='max-width: 200px; max-height=200px;' />"
arr[i] = "<a href='" + arr[i] +"' target='_blank'><img src='" + arr[i] + "' style='max-width: 200px; max-height=200px;' /></a>"
} else {
arr[i] = "<a href='" + arr[i] + "''>" + arr[i] + "</a>";
arr[i] = "<a href='" + arr[i] + "' target='_blank'>" + arr[i] + "</a>";
}
}
}

0 comments on commit 8eac8c0

Please sign in to comment.
You can’t perform that action at this time.