Skip to content

Commit

Permalink
removed padding in version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoiro3 committed Jun 24, 2024
1 parent 5f8f062 commit 4a13b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mkdocs_multirepo_plugin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def parse_version(val: str) -> Version:
version: str = match.group(1) if match else ""
major, minor, patch = version.split(".", maxsplit=2)
return Version(
major=int(major.ljust(2, "0")),
minor=int(minor.ljust(2, "0")),
patch=int(patch.ljust(2, "0")),
major=int(major),
minor=int(minor),
patch=int(patch),
)


Expand Down

0 comments on commit 4a13b24

Please sign in to comment.