This commit is contained in:
Bjarke Berg
2021-08-30 13:50:48 +02:00
parent 56d8e0e684
commit 9bb6d8b20b

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Extensions
if (text == null)
return null;
if (text.StartsWith("#") == false || text.IndexOf('_') == -1)
if (text.StartsWith("#") == false)
return text;
text = text.Substring(1);
@@ -75,6 +75,9 @@ namespace Umbraco.Extensions
return value;
}
if (text.IndexOf('_') == -1)
return text;
var areaAndKey = text.Split('_');
if (areaAndKey.Length < 2)