use existing array to split (#10999)

This commit is contained in:
Chad
2021-09-01 15:06:33 +12:00
committed by GitHub
parent 3fcf8676b4
commit 51fcde5fcd

View File

@@ -40,7 +40,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
}
// Otherwise assume CSV storage type and return as string array
return source.ToString().Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries);
return source.ToString().Split(Constants.CharArrays.Comma, StringSplitOptions.RemoveEmptyEntries);
}
public override object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, object source, bool preview)