Handle ToLower neutrally across all locales (#412)

This commit is contained in:
Archangel
2025-07-03 18:27:41 +02:00
parent 939198026f
commit 79489eadce
38 changed files with 106 additions and 104 deletions
@@ -115,6 +115,6 @@ public class BotGenerationCacheService(
public string CreateCacheKey(string? role, string? difficulty)
{
return $"{role?.ToLower()}{difficulty?.ToLower()}";
return $"{role?.ToLowerInvariant()}{difficulty?.ToLowerInvariant()}";
}
}