Skip to content

Commit 91c3844

Browse files
fix: do not remove build from versions (#2688)
1 parent 09fd897 commit 91c3844

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/utils/versions/parseVersion.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ export const getMinorVersion = (version: string) => {
77
result = result.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/, ''); // stable-19-2-18.bfa368f -> stable-19-2-18
88
}
99

10-
const buildVersionRegexp = /\d{1,}-\d{1,}-\d{1,}-\d{1,}$/;
11-
if (buildVersionRegexp.test(version)) {
12-
result = result.replace(/-\d{1,}$/, ''); // stable-19-2-18-1 -> stable-19-2-18
13-
}
14-
1510
return result;
1611
};
1712

0 commit comments

Comments
 (0)