Skip to content

Trailing punctutaion #162

@Zetanova

Description

@Zetanova

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions