docs: function toMinorRange(version) {
      var regex = /^\d+\.\d+/;
      var range = version.match(regex);
      if (range) {
        return '^' + range[0];
      }
      else {
        var regex = /^\d+\.x/;
        var range = version.match(regex);
        if (range) {
          return range[0];
        }
      }
  
      return version;
    }