diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-02-26 18:36:39 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-02-26 18:36:39 +0100 |
| commit | 0112bcfd629c534997017ad6bc6d9b6caf2b95ad (patch) | |
| tree | 2945c10d4f8ea86aebfb643bf468ebaed2ce256a /src/IOL.Helpers/SlugGenerator.cs | |
| parent | feb989c750fe3bad630b8950af7a54b51a0c46a1 (diff) | |
| download | dotnet-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.cs | 5 |
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 }; } |
