diff --git a/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs b/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs index 1688eb49..72973e7f 100644 --- a/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs +++ b/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs @@ -98,7 +98,7 @@ namespace Newtonsoft.Json.Schema { string reference = schema.DeferredReference; - bool locationReference = (reference.StartsWith("#", StringComparison.OrdinalIgnoreCase)); + bool locationReference = (reference.StartsWith("#", StringComparison.Ordinal)); if (locationReference) reference = UnescapeReference(reference); @@ -445,4 +445,4 @@ namespace Newtonsoft.Json.Schema return JsonSchemaConstants.JsonSchemaTypeMapping.Single(kv => kv.Value == type).Key; } } -} \ No newline at end of file +}