(v: str)
| 948 | |
| 949 | |
| 950 | def _normalize_java_version(v: str) -> str: |
| 951 | v = v.strip() |
| 952 | if re.search(r"(?i)-snapshot$", v): |
| 953 | return re.sub(r"(?i)-snapshot$", "-SNAPSHOT", v) |
| 954 | if re.search(r"(?i)(\.dev\d*|-dev\d*)$", v): |
| 955 | base = re.sub(r"(?i)(\.dev\d*|-dev\d*)$", "", v) |
| 956 | return f"{base}-SNAPSHOT" |
| 957 | return v |
| 958 | |
| 959 | |
| 960 | def _normalize_go_version(v: str) -> str: |
no test coverage detected