Use InvariantEquals

This commit is contained in:
Warren Buckley
2020-05-28 11:45:43 +01:00
parent ff30a27697
commit c9ab2ca9ef

View File

@@ -120,7 +120,7 @@ namespace Umbraco.Web.Compose
{
foreach (var ncItemProp in nestedContentItem.Properties())
{
if(ncItemProp.Name.ToLowerInvariant() == "key")
if(ncItemProp.Name.InvariantEquals("key"))
ncItemProp.Value = Guid.NewGuid().ToString();
// No need to check this property for JSON - as this is a JSON prop we know