(v: str)
| 1011 | |
| 1012 | |
| 1013 | def _is_release_version(v: str) -> bool: |
| 1014 | v = v.strip() |
| 1015 | if v.startswith("v"): |
| 1016 | v = v[1:] |
| 1017 | return re.match(r"^\d+\.\d+\.\d+$", v) is not None |
| 1018 | |
| 1019 | |
| 1020 | def _normalize_rust_version(v: str) -> str: |
no test coverage detected