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.
1 parent 8ec8ffc commit b5822f0Copy full SHA for b5822f0
nodescraper/plugins/inband/rocm/rocmdata.py
@@ -48,12 +48,6 @@ def validate_rocm_version(cls, rocm_version: str) -> str:
48
Returns:
49
str: The validated ROCm version string.
50
"""
51
- if not bool(
52
- re.match(
53
- r"^(\d+(?:\.\d+){0,3})-(\d+)$",
54
- rocm_version,
55
- )
56
- ):
+ if not re.match(r"^\d+(?:\.\d+){0,3}(-\d+)?$", rocm_version):
57
raise ValueError(f"ROCm version has invalid format: {rocm_version}")
58
-
59
return rocm_version
0 commit comments