Skip to content

Commit

Permalink
use existing array to split (#10999)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzdev committed Sep 1, 2021
1 parent 3fcf867 commit 51fcde5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override object ConvertSourceToIntermediate(IPublishedElement owner, IPub
}

// 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)
Expand Down

0 comments on commit 51fcde5

Please sign in to comment.