Skip to content

Commit 4a13b24

Browse files
committed
removed padding in version parsing
1 parent 5f8f062 commit 4a13b24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mkdocs_multirepo_plugin/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def parse_version(val: str) -> Version:
7474
version: str = match.group(1) if match else ""
7575
major, minor, patch = version.split(".", maxsplit=2)
7676
return Version(
77-
major=int(major.ljust(2, "0")),
78-
minor=int(minor.ljust(2, "0")),
79-
patch=int(patch.ljust(2, "0")),
77+
major=int(major),
78+
minor=int(minor),
79+
patch=int(patch),
8080
)
8181

8282

0 commit comments

Comments
 (0)