mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
format ContentPackVersion
This commit is contained in:
parent
94989ce292
commit
f44747587f
2 changed files with 52 additions and 45 deletions
|
|
@ -37,7 +37,8 @@ DependencyVersionOperator Version::string_to_operator(const std::string& op) {
|
|||
return DependencyVersionOperator::more_or_equal;
|
||||
else if (op == "<=" || op == "=<")
|
||||
return DependencyVersionOperator::less_or_equal;
|
||||
else return DependencyVersionOperator::equal;
|
||||
else
|
||||
return DependencyVersionOperator::equal;
|
||||
}
|
||||
|
||||
bool isNumber(const std::string& s) {
|
||||
|
|
@ -63,4 +64,4 @@ bool Version::matches_pattern(const std::string& version) {
|
|||
}
|
||||
|
||||
return parts.size() == 2 || parts.size() == 3;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue