summaryrefslogtreecommitdiffstats
path: root/src/IOL.Helpers/SlugGenerator.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-02-26 18:36:39 +0100
committerivarlovlie <git@ivarlovlie.no>2022-02-26 18:36:39 +0100
commit0112bcfd629c534997017ad6bc6d9b6caf2b95ad (patch)
tree2945c10d4f8ea86aebfb643bf468ebaed2ce256a /src/IOL.Helpers/SlugGenerator.cs
parentfeb989c750fe3bad630b8950af7a54b51a0c46a1 (diff)
downloaddotnet-helpers-0112bcfd629c534997017ad6bc6d9b6caf2b95ad.tar.xz
dotnet-helpers-0112bcfd629c534997017ad6bc6d9b6caf2b95ad.zip
feat: Add tests for StringHelpers; Various breaking changes
Diffstat (limited to 'src/IOL.Helpers/SlugGenerator.cs')
-rw-r--r--src/IOL.Helpers/SlugGenerator.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/IOL.Helpers/SlugGenerator.cs b/src/IOL.Helpers/SlugGenerator.cs
index 6e669c0..9032303 100644
--- a/src/IOL.Helpers/SlugGenerator.cs
+++ b/src/IOL.Helpers/SlugGenerator.cs
@@ -18,8 +18,8 @@ public static class Slug
/// </summary>
/// <param name="value"></param>
/// <param name="toLower"></param>
- /// <returns>Slugified string</returns>
- public static string Create(string value, bool toLower) {
+ /// <returns>AsSlug string</returns>
+ private static string Create(string value, bool toLower) {
if (string.IsNullOrWhiteSpace(value))
return value;
@@ -102,6 +102,7 @@ public static class Slug
'å' => "aa",
'æ' => "ae",
'Þ' => "th",
+ '@' => "at",
_ => null
};
}