Skip to content

Commit

Permalink
fix(versioning/poetry): improve poetry2semver validation (#29858)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Jun 26, 2024
1 parent 166054f commit 98e089b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/versioning/poetry/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function poetry2semver(
parts.push(`-${dev.letter}.${dev.number}`);
}

return parts.join('');
return semver.valid(parts.join(''));
}

/** Reverse normalizations applied by poetry2semver */
Expand Down

0 comments on commit 98e089b

Please sign in to comment.