Skip to content

Commit 12e89a0

Browse files
committed
Update usage
Update string helper to use new method that uses user defined replacements
1 parent 1ee4e37 commit 12e89a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Core/Strings/DefaultShortStringHelperConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using Umbraco.Cms.Core.Configuration.Models;
@@ -60,7 +60,7 @@ public DefaultShortStringHelperConfig WithConfig(string culture, CleanStringType
6060
/// <returns>The short string helper.</returns>
6161
public DefaultShortStringHelperConfig WithDefault(RequestHandlerSettings requestHandlerSettings)
6262
{
63-
UrlReplaceCharacters = requestHandlerSettings.CharCollection
63+
UrlReplaceCharacters = requestHandlerSettings.GetCharReplacements()
6464
.Where(x => string.IsNullOrEmpty(x.Char) == false)
6565
.ToDictionary(x => x.Char, x => x.Replacement);
6666

0 commit comments

Comments
 (0)