1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:01:13 +03:00

Replace "ToLower" with "ToLowerInvariant" to fix a missed warning (#71)

This commit is contained in:
Macintxsh 2023-07-25 19:20:09 +03:00 committed by GitHub
parent 05fd343dce
commit 8f95e4cd2c
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ public class BoolOption : Option<bool> {
}
private static bool TryParseBool(string from, out bool value) {
from = from.ToLower();
from = from.ToLowerInvariant();
value = false;
switch (from) {
case "true" or "1" or "y" or "yes" or "д" or "да":