Skip to content

Commit 3ac1738

Browse files
committed
1 parent ccb68a7 commit 3ac1738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RestSharp/Extensions/StringExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ string CaseWord(string word)
236236
/// <param name="culture"></param>
237237
/// <returns>String</returns>
238238
public static string ToCamelCase(this string lowercaseAndUnderscoredWord, CultureInfo culture)
239-
=> MakeInitialLowerCase(ToPascalCase(lowercaseAndUnderscoredWord, culture));
239+
=> MakeInitialLowerCase(ToPascalCase(lowercaseAndUnderscoredWord, culture), culture);
240240

241241
/// <summary>
242242
/// Convert the first letter of a string to lower case
243243
/// </summary>
244244
/// <param name="word">String to convert</param>
245245
/// <returns>string</returns>
246-
public static string MakeInitialLowerCase(this string word) => string.Concat(word.Substring(0, 1).ToLower(), word.Substring(1));
246+
public static string MakeInitialLowerCase(this string word, CultureInfo culture) => string.Concat(word.Substring(0, 1).ToLower(culture), word.Substring(1));
247247

248248
/// <summary>
249249
/// Add underscores to a pascal-cased string

0 commit comments

Comments
 (0)