code: function (version) {
          //var pattern = VERSION_PATTERN;
          var match = version.match(VERSION_PATTERN);
          if (match) {
              return [
                  parseInt(match[1]),
                  parseInt(match[2] || "0"),
                  parseInt(match[3] || "0"),
                  versionStageToInt(match[4]),
                  parseInt(match[5] || "0"),
              ];
          }
          return null;
      }
docs: Parse a version string into an array of ints in the form
  `[major, minor, patch, testStage, stageIncrementor]`
  `major` has not default, the rest default as follows:
  `minor = 0`, `patch=0`,
  `testStage=0`, `stageIncrementor=0`