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:
parent
3ee8f81317
commit
4913519eb4
2 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue