format ContentPackVersion

This commit is contained in:
MihailRis
2025-09-14 12:57:19 +03:00
parent 94989ce292
commit f44747587f
2 changed files with 52 additions and 45 deletions
+3 -2
View File
@@ -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;
}
}