Skip to content

Commit

Permalink
- adjusted the regex output to point to the proper groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Gil committed Oct 4, 2023
1 parent 5c23b0b commit 3198927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25277,9 +25277,9 @@ var getVersion = function (version) { return __awaiter(void 0, void 0, void 0, f
major: parseInt(version[1]),
minor: parseInt(version[2]),
patch: parseInt(version[3]),
manifestSafeVersionString: version[0].padStart(2, "0") + "." +
version[1].padStart(2, "0") + "." +
version[2].padStart(2, "0")
manifestSafeVersionString: version[1].padStart(2, "0") + "." +
version[2].padStart(2, "0") + "." +
version[3].padStart(2, "0")
}];
});
}); };
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const getVersion = async (version: Array<any>): Promise<Version> => {
minor: parseInt(version[2]),
patch: parseInt(version[3]),
manifestSafeVersionString:
version[0].padStart(2, "0") + "." +
version[1].padStart(2, "0") + "." +
version[2].padStart(2, "0")
version[2].padStart(2, "0") + "." +
version[3].padStart(2, "0")
};
}

Expand Down

0 comments on commit 3198927

Please sign in to comment.