Rename CharacterReplacement back to CharItem

Since the class is public renaming this would be a breaking change, since if anyone is directly referring to the class it would break
This commit is contained in:
Mole
2021-12-21 10:30:19 +01:00
parent c4f8944add
commit 8a8b1e3247
4 changed files with 12 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ namespace Umbraco.Cms.Core.Configuration.Models
internal const string StaticConvertUrlsToAscii = "try";
internal const bool StaticEnableDefaultCharReplacements = true;
internal static readonly CharacterReplacement[] DefaultCharCollection =
internal static readonly CharItem[] DefaultCharCollection =
{
new () { Char = " ", Replacement = "-" },
new () { Char = "\"", Replacement = string.Empty },
@@ -78,13 +78,13 @@ namespace Umbraco.Cms.Core.Configuration.Models
/// <summary>
/// Add additional character replacements, or override defaults
/// </summary>
public CharacterReplacement[] CharCollection { get; set; }
public CharItem[] CharCollection { get; set; }
/// <summary>
/// Get concatenated user and default character replacements
/// taking into account <see cref="EnableDefaultCharReplacements"/>
/// </summary>
public IEnumerable<CharacterReplacement> GetCharReplacements()
public IEnumerable<CharItem> GetCharReplacements()
{
// TODO We need to special handle ":", as this character is special in keys