Skip to content

Commit

Permalink
fix(lookup): check version validity before equality (#26913)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Jan 29, 2024
1 parent 39ae151 commit a41f46c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ export async function lookupUpdates(
}

res.currentVersion = currentVersion!;
const currentVersionTimestamp = allVersions.find((v) =>
versioning.equals(v.version, currentVersion),
const currentVersionTimestamp = allVersions.find(
(v) =>
versioning.isValid(v.version) &&
versioning.equals(v.version, currentVersion),
)?.releaseTimestamp;

if (
Expand Down

0 comments on commit a41f46c

Please sign in to comment.