code: function extractProtocol(address) {
    var match = protocolre.exec(address);
  
    return {
      protocol: match[1] ? match[1].toLowerCase() : '',
      slashes: !!match[2],
      rest: match[3]
    };
  }
docs: @typedef ProtocolExtract
  @type Object
  @property {String} protocol Protocol matched in the URL, in lowercase.
  @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
  @property {String} rest Rest of the URL that is not part of the protocol.
   
  Extract protocol information from a URL with/without double slash ("//").
  
  @param {String} address URL we want to extract from.
  @return {ProtocolExtract} Extracted information.
  @private