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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user