fixed a couple of unit_test issues; bumped RC version

This commit is contained in:
Some Random Crypto Guy
2025-04-01 12:18:56 +01:00
parent 5da798a7c5
commit 9d9471d314
6 changed files with 137 additions and 34 deletions

View File

@@ -45,7 +45,7 @@ namespace rpc
bool is_version_string_valid(const std::string& str)
{
return std::regex_match(str, std::regex(
"^\\d{1,2}(\\.\\d{1,2}){2}(-(release|[0-9a-f]{9}))?.+$",
"^\\d{1,2}(\\.\\d{1,2}){3}(-(release|[0-9a-f]{9}))?$",
std::regex_constants::nosubs
));
}