[Backport release-10.x] fix Pre-release filter (#4566)

This commit is contained in:
Alexandru Ionut Tripon 2025-12-22 23:46:04 +02:00 committed by GitHub
commit 7101f15a2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,8 @@ ModPlatform::IndexedVersion Modrinth::loadIndexedPackVersion(QJsonObject& obj, Q
return {};
}
for (auto mcVer : versionArray) {
file.mcVersion.append(ModrinthAPI::mapMCVersionFromModrinth(mcVer.toString()));
file.mcVersion.append({ ModrinthAPI::mapMCVersionFromModrinth(mcVer.toString()),
mcVer.toString() }); // double this so we can check both strings when filtering
}
auto loaders = Json::requireArray(obj, "loaders");
for (auto loader : loaders) {