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:
commit
3a15f03c34
@ -1,4 +1,4 @@
|
|||||||
// Returns true if this is a host that closes *before* it ends?!?!
|
// Returns true if this is a host that closes *before* it ends?!?!
|
||||||
module.exports.isAnEarlyCloseHost= function( hostName ) {
|
module.exports.isAnEarlyCloseHost= function( hostName ) {
|
||||||
return hostName.match(".*google(apis)?.com$")
|
return hostName && hostName.match(".*google(apis)?.com$")
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user