The dot . is an allowed character.
But many slug implementations do remove a trailing punctuation.
The is currently no option or hook to add this feature in user code.
Only TrimWhitespace exists
The options could be extended and/or over a virtual method to be able to use
SlugHelperForNonAsciiLanguages as the base class
Workaround:
slug.GenerateSlug("The Name & co.").TrimEnd('.')
The dot
.is an allowed character.But many slug implementations do remove a trailing punctuation.
The is currently no option or hook to add this feature in user code.
Only
TrimWhitespaceexistsThe options could be extended and/or over a virtual method to be able to use
SlugHelperForNonAsciiLanguagesas the base classWorkaround:
slug.GenerateSlug("The Name & co.").TrimEnd('.')