Skip to content
Snippets Groups Projects
Unverified Commit 8db8b430 authored by Chris Truter's avatar Chris Truter Committed by GitHub
Browse files

Fix bumping minor version past 10 (#40859)

parent 5b19999d
Branches
Tags
No related merge requests found
......@@ -159,7 +159,6 @@ export const getNextVersions = (versionString: string): string[] => {
// minor releases -> next minor release
const [major, minor] = versionString
.replace(/(v1|v0)\./, "")
.replace(/.0$/, "")
.split(".")
.map(Number);
......
......@@ -358,6 +358,7 @@ describe("version-helpers", () => {
const testCases: [string, string[]][] = [
["v0.75.1", ["v0.75.2"]],
["v0.75.1.0", ["v0.75.2"]], // disregards extra .0
["v0.75.10", ["v0.75.11"]], // handles multi-digit minor
["v0.79.99", ["v0.79.100"]],
["v0.79.99.0", ["v0.79.100"]],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment