Update to make sure hostName exists before trying to act on it. Otherwise it will throw an error.
This commit is contained in:
parent
03a82b31e4
commit
409405f674
|
@ -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$")
|
||||
}
|
Loading…
Reference in New Issue