Added CultureInfo in char.ToLower at GetServiceRegistrationName method (#2810)

This commit is contained in:
aj-rosado 2023-10-10 16:22:39 +01:00 committed by GitHub
parent 757e5ea647
commit a67f50b145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Bit.Core.Abstractions; using Bit.Core.Abstractions;
@ -228,7 +229,7 @@ namespace Bit.Core.Utilities
// and lower case the 2nd one (index 1) // and lower case the 2nd one (index 1)
indexToLowerCase = 1; indexToLowerCase = 1;
} }
sb.Append(char.ToLower(typeName[indexToLowerCase])); sb.Append(char.ToLower(typeName[indexToLowerCase], new CultureInfo("en-US")));
sb.Append(typeName.Substring(++indexToLowerCase)); sb.Append(typeName.Substring(++indexToLowerCase));
return sb.ToString(); return sb.ToString();
} }