diff --git a/Src/Newtonsoft.Json/JsonPosition.cs b/Src/Newtonsoft.Json/JsonPosition.cs index cbd32f92..1e2f0628 100644 --- a/Src/Newtonsoft.Json/JsonPosition.cs +++ b/Src/Newtonsoft.Json/JsonPosition.cs @@ -96,7 +96,7 @@ namespace Newtonsoft.Json { message = message.Trim(); - if (!message.EndsWith(".")) + if (!message.EndsWith(".", StringComparison.Ordinal)) message += "."; message += " "; @@ -112,4 +112,4 @@ namespace Newtonsoft.Json return message; } } -} \ No newline at end of file +}