Skip to content

Commit

Permalink
add isPlainHostName, closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Mar 26, 2019
1 parent 62a5f2b commit 1e3ea2b
Show file tree
Hide file tree
Showing 5 changed files with 1,053 additions and 487 deletions.
4 changes: 4 additions & 0 deletions lib/pac-file-tester.js
Expand Up @@ -85,6 +85,10 @@ module.exports = {
dnsResults: dnsResults,
dnsResolve: function(host){
return dnsResults[host]
},

isPlainHostName: function(host){
return (host.search('\\\\.') == -1);
}
})

Expand Down

0 comments on commit 1e3ea2b

Please sign in to comment.