Skip to content

Commit

Permalink
Fix Ivy
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Apr 16, 2023
1 parent 4f9108b commit fbf0572
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/modules/versioning/ivy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,27 @@ function isValid(str: string): boolean {
if (!str) {
return false;
}
return maven.isVersion(str) || !!parseDynamicRevision(str);

if (LATEST_REGEX.test(str)) {
return true;
}

return isVersion(str) || !!parseDynamicRevision(str);
}

function isVersion(str: string): boolean {
if (!str || LATEST_REGEX.test(str)) {
if (!str) {
return false;
}

if (LATEST_REGEX.test(str)) {
return false;
}

if (str.includes('+')) {
return false;
}

return maven.isVersion(str);
}

Expand Down

0 comments on commit fbf0572

Please sign in to comment.