Nicer variable name, thank to Lee Kelleher!

This commit is contained in:
Sebastiaan Jansssen
2018-01-19 12:50:45 +01:00
parent 410afffaa9
commit 4e57e1cc18

View File

@@ -18,7 +18,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
return Constants.PropertyEditors.MultipleTextstringAlias.Equals(propertyType.PropertyEditorAlias);
}
private static readonly string[] NewLineOptions = { "\r\n", "\r", "\n" };
private static readonly string[] NewLineDelimiters = { "\r\n", "\r", "\n" };
public override object ConvertDataToSource(PublishedPropertyType propertyType, object source, bool preview)
{
@@ -55,7 +55,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
// Fall back on normal behaviour
if (values.Any() == false)
{
return sourceString.Split(NewLineOptions, StringSplitOptions.None);
return sourceString.Split(NewLineDelimiters, StringSplitOptions.None);
}
return values.ToArray();