Skip to content

Commit

Permalink
Update to make sure hostName exists before trying to act on it. Other…
Browse files Browse the repository at this point in the history
…wise it will throw an error.
  • Loading branch information
GCheung55 committed Jun 11, 2012
1 parent 03a82b3 commit 409405f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_utils.js
@@ -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$")
}

0 comments on commit 409405f

Please sign in to comment.