code: function (matchRegexObject, remote) {
          var hostSuffix = matchRegexObject.host.substr(2);
          return matchRegexObject.host[0] === MATCH_ALL && (remote === hostSuffix || remote.endsWith('.' + hostSuffix));
      }
docs: Check for the (*.foo.bar.com) kind of matches with the remote provided.
  
  @private
  @param {Object=} matchRegexObject The regex object generated by the createMatchPattern function.
  @param {String=} remote The remote url (host+port) of the url for which the hostpattern needs to checked
  @return {Boolean}