mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Merge pull request #496 from JocelynDelalande/remove-prefetch-localhost-exception
Remove prefetching exception for localhost
This commit is contained in:
commit
259085da38
1 changed files with 0 additions and 3 deletions
|
@ -18,9 +18,6 @@ module.exports = function(irc, network) {
|
|||
var links = [];
|
||||
var split = data.message.split(" ");
|
||||
_.each(split, function(w) {
|
||||
if (w.match(/^(http|https):\/\/localhost/g)) {
|
||||
return;
|
||||
}
|
||||
var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0;
|
||||
if (match) {
|
||||
links.push(w);
|
||||
|
|
Loading…
Reference in a new issue