2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-26 00:37:10 -07:00

Still handle version ranges as an unknown version

This commit is contained in:
Geert Bevin 2024-07-19 23:35:29 -04:00
parent 3ee8f81317
commit 4913519eb4
2 changed files with 14 additions and 0 deletions

View file

@ -51,6 +51,10 @@ public record VersionNumber(Integer major, Integer minor, Integer revision, Stri
var matcher = VERSION_PATTERN.matcher(version);
if (!matcher.matches()) {
// bld doesn't support version ranges at this time
if (version.startsWith("[") || version.startsWith("(")) {
return UNKNOWN;
}
return new VersionGeneric(version);
}