function enableNetConnect(matcher) {
  if (typeof matcher === 'string') {
    allowNetConnect = new RegExp(matcher)
  } else if (matcher instanceof RegExp) {
    allowNetConnect = matcher
  } else if (typeof matcher === 'function') {
    allowNetConnect = { test: matcher }
  } else {
    allowNetConnect = /.*/
  }
}
Enabled real request.
@public
@param {String|RegExp} matcher=RegExp.new('.*') Expression to match
@example
// Enables all real requests
nock.enableNetConnect();
@example
// Enables real requests for url that matches google
nock.enableNetConnect('google');
@example
// Enables real requests for url that matches google and amazon
nock.enableNetConnect(/(google|amazon)/);
@example
// Enables real requests for url that includes google
nock.enableNetConnect(host => host.includes('google'));