Octathorpes have no case.

Swapped in StringComparison.Ordinal for the literal comparison against [ and ] since those are non-caseable. This is a micro-improvement, but still good practice.
This commit is contained in:
Marc Brooks
2014-05-14 17:11:38 -05:00
parent 017a38c65b
commit 42f6aa199b
@@ -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;
}
}
}
}