浏览代码

Allows versions without a patch

main
Eric Amodio 5 年前
父节点
当前提交
a96e98a7ee
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/system/version.ts

+ 2
- 2
src/system/version.ts 查看文件

@ -33,13 +33,13 @@ export namespace Versions {
export function from(
major: string | number,
minor: string | number,
patch: string | number,
patch?: string | number,
pre?: string
): Version {
return {
major: typeof major === 'string' ? parseInt(major, 10) : major,
minor: typeof minor === 'string' ? parseInt(minor, 10) : minor,
patch: typeof patch === 'string' ? parseInt(patch, 10) : patch,
patch: patch == null ? 0 : typeof patch === 'string' ? parseInt(patch, 10) : patch,
pre: pre
};
}

正在加载...
取消
保存