Merge pull request #276 from IDisposable/patch-2
Octathorpes have no case.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user