Skip to content

Commit

Permalink
fix(gradle): Treat dev qualifier as unstable (#18187)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Oct 7, 2022
1 parent ea0eb67 commit 4a0314a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/versioning/gradle/index.spec.ts
Expand Up @@ -181,6 +181,7 @@ describe('modules/versioning/gradle/index', () => {
${'Hoxton.SR'} | ${true}
${'Hoxton.SR1'} | ${true}
${'1.3.5-native-mt-1.3.71-release-429'} | ${false}
${'1.0-dev'} | ${false}
`('isStable("$input") === $expected', ({ input, expected }) => {
expect(api.isStable(input)).toBe(expected);
});
Expand Down
1 change: 1 addition & 0 deletions lib/modules/versioning/gradle/index.ts
Expand Up @@ -75,6 +75,7 @@ const getPatch = (version: string): number | null => {
const isGreaterThan = (a: string, b: string): boolean => compare(a, b) === 1;

const unstable = new Set([
'dev',
'a',
'alpha',
'b',
Expand Down

0 comments on commit 4a0314a

Please sign in to comment.