From a67f50b145c73e9c2138dc2abcf1e1628db2df74 Mon Sep 17 00:00:00 2001 From: aj-rosado <109146700+aj-rosado@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:22:39 +0100 Subject: [PATCH] Added CultureInfo in char.ToLower at GetServiceRegistrationName method (#2810) --- src/Core/Utilities/ServiceContainer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Utilities/ServiceContainer.cs b/src/Core/Utilities/ServiceContainer.cs index 197fa4668..7d3e32e3b 100644 --- a/src/Core/Utilities/ServiceContainer.cs +++ b/src/Core/Utilities/ServiceContainer.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Globalization; using System.Text; using System.Threading.Tasks; using Bit.Core.Abstractions; @@ -228,7 +229,7 @@ namespace Bit.Core.Utilities // and lower case the 2nd one (index 1) indexToLowerCase = 1; } - sb.Append(char.ToLower(typeName[indexToLowerCase])); + sb.Append(char.ToLower(typeName[indexToLowerCase], new CultureInfo("en-US"))); sb.Append(typeName.Substring(++indexToLowerCase)); return sb.ToString(); }