Skip to content

Commit

Permalink
Update lib/modules/versioning/rpm/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <[email protected]>
  • Loading branch information
laundry-96 and viceice authored Dec 18, 2023
1 parent 48eb726 commit 768ca3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/versioning/rpm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ class RpmVersioningApi extends GenericVersioningApi {
matchv2 = matchv2?.replace(leadingZerosPattern, '');

//We clearly have a number here, so return which is greater
const num1 = Number(matchv1);
const num2 = Number(matchv2);
const num1 = Number.parseInt(matchv1, 10);
const num2 = Number.parseInt(matchv2, 10);

const result = num1 - num2;

Expand Down

0 comments on commit 768ca3e

Please sign in to comment.