Merge pull request #13268 from AdmiralCurtiss/ini-delete-case-sensitive

Common/IniFile: Fix case sensitivity mismatch in IniFile::Section::Delete()
This commit is contained in:
Admiral H. Curtiss 2025-01-08 21:42:32 +01:00 committed by GitHub
commit 0e5d7d0f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,8 @@ bool IniFile::Section::Delete(std::string_view key)
return false;
values.erase(it);
keys_order.erase(std::ranges::find(keys_order, key));
keys_order.erase(std::ranges::find_if(
keys_order, [&](std::string_view v) { return CaseInsensitiveEquals(key, v); }));
return true;
}