We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1448702 + fbbc714 commit f7311b6Copy full SHA for f7311b6
src/osa/paths.py
@@ -358,7 +358,8 @@ def get_latest_version_file(longterm_files: List[str]) -> Path:
358
return max(
359
longterm_files,
360
key=lambda path: int(path.parents[1].name.split(".")[1])
361
- if path.parents[1].name.startswith("v")
+ if path.parents[1].name.startswith("v") and
362
+ re.match(r'^\d+\.\d+(\.\d+)?$', path.parents[1].name[1:])
363
else "",
364
)
365
0 commit comments