Merge pull request #101 from GCheung55/patch-1

Update to make sure hostName exists before trying to act on it
This commit is contained in:
Ciaran Jessup 2012-07-28 05:33:46 -07:00
commit 3a15f03c34
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// Returns true if this is a host that closes *before* it ends?!?!
module.exports.isAnEarlyCloseHost= function( hostName ) {
return hostName.match(".*google(apis)?.com$")
return hostName && hostName.match(".*google(apis)?.com$")
}