Slugify icon indicating copy to clipboard operation
Slugify copied to clipboard

Trailing punctutaion

Open Zetanova opened this issue 10 months ago • 1 comments

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('.')

Zetanova avatar May 14 '25 10:05 Zetanova

Noted!

ctolkien avatar May 20 '25 01:05 ctolkien