Merge pull request #496 from JocelynDelalande/remove-prefetch-localhost-exception

Remove prefetching exception for localhost
This commit is contained in:
Jérémie Astori 2015-10-01 23:41:25 +02:00
commit 259085da38

View File

@ -18,9 +18,6 @@ module.exports = function(irc, network) {
var links = []; var links = [];
var split = data.message.split(" "); var split = data.message.split(" ");
_.each(split, function(w) { _.each(split, function(w) {
if (w.match(/^(http|https):\/\/localhost/g)) {
return;
}
var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0; var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0;
if (match) { if (match) {
links.push(w); links.push(w);