mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 03:15:38 -05:00
change equal perfix from == to =
This commit is contained in:
parent
b3ebb7f9c9
commit
6d3847d9e1
1 changed files with 3 additions and 3 deletions
|
@ -120,9 +120,9 @@ Result<ComparableVersionInfo> ComparableVersionInfo::parse(std::string const& ra
|
|||
compare = VersionCompare::MoreEq;
|
||||
string.erase(0, 2);
|
||||
}
|
||||
else if (string.starts_with("==")) {
|
||||
else if (string.starts_with("=")) {
|
||||
compare = VersionCompare::Exact;
|
||||
string.erase(0, 2);
|
||||
string.erase(0, 1);
|
||||
}
|
||||
GEODE_UNWRAP_INTO(auto version, VersionInfo::parse(string));
|
||||
return Ok(ComparableVersionInfo(version, compare));
|
||||
|
@ -131,7 +131,7 @@ Result<ComparableVersionInfo> ComparableVersionInfo::parse(std::string const& ra
|
|||
std::string ComparableVersionInfo::toString() const {
|
||||
std::string prefix = "";
|
||||
switch (m_compare) {
|
||||
case VersionCompare::Exact: prefix = "=="; break;
|
||||
case VersionCompare::Exact: prefix = "="; break;
|
||||
case VersionCompare::LessEq: prefix = "<="; break;
|
||||
case VersionCompare::MoreEq: prefix = ">="; break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue