This commit is contained in:
Bjarke Berg
2021-09-02 10:51:11 +02:00
committed by GitHub
parent 74b1c8384a
commit be3545ce4a

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)