Slugify
Slugify copied to clipboard
Simple Slug / Clean URL generator helper for Microsoft .NET framework / .NET Standard.
* Adopts file scoped namespaces and a few other minor updates.
To make the URL SEO friendly, accepting a `length` parameter in `Config` or `GenerateSlug()` for truncating the string to a limit would be a good addition.
It doesn't work for Unicode characters such as "نوشتار فارسی". How should I do?
``` ?slugHelper.GenerateSlug("FIFA 18") "ffa-18" ``` ``` "FIFA 18".ToLower() "fıfa 18" ``` caused by Turkish encoding.
Implements #18 Added Option to Limit Output Slug Length. Default Value is null to not introduce any breaking Changes into the Library.
Bumps [xunit](https://github.com/xunit/xunit) from 2.9.0 to 2.9.1. Commits bb7c3e4 v2.9.1 5d70d25 #3028: Support IGrouping<TKey,TValue> in Assert.Equivalent (v2) ed6e05b Add support for IGrouping<,> in ArgumentFormatter, assuming it's safe to re-e... d97c7f8 Restore...
Bumps System.Memory and [System.Text.Encoding.CodePages](https://github.com/dotnet/runtime). These dependencies needed to be updated together. Updates `System.Memory` from 4.6.2 to 4.5.5 Updates `System.Text.Encoding.CodePages` from 9.0.3 to 9.0.4 Release notes Sourced from System.Text.Encoding.CodePages's releases. .NET...
Hiya, There is a `MaximumLength` but could we also get minimum one? The min commercetools length of a slug is 2 chars; https://docs.commercetools.com/api/projects/products#productdraft Maybe a feature to add characters or...
### Discussed in https://github.com/ctolkien/Slugify/discussions/155 Originally posted by **cemilf** March 19, 2025 It seems that it is possible to use single class to support Non Ascii Languages without a separate class....
This #151 only truncates the slug to size. An option for shortening with a postfix is missing. The postfix could be a part of the full hash (1 byte) This...