diff --git a/lib/hosts.js b/lib/hosts.js index e2ce3f0..443be21 100644 --- a/lib/hosts.js +++ b/lib/hosts.js @@ -12,9 +12,9 @@ exports.getHosts = function() { var fileContent = FILE.readFile(filePath, "utf-8"); var lines = fileContent.split(/[\r\n]+/g).filter(function(s) { - return !(s.indexOf('#') == 0) + return !(s.indexOf(' #') == 0) }).map(function(s) { - var pos = s.indexOf('#'); + var pos = s.indexOf(' #'); if(pos > -1) { return s.substring(pos).replace(/\s\s/g, ' '); } else {