Skip to content

Conversation

@andresz1
Copy link

@andresz1 andresz1 commented Sep 7, 2019

This PR adds a new option that is useful when you want to replace special characters rather than removing them. As the regex option name is called remove I thought that remover could be a good name but I'm not sure (no breaking changes).

Example:

slugify('Çumra.fdf', {
    replacement: '-',
    remover: ' ',
    lower: true
});

// output: cumra-fdf

Any feedback would be appreciated, thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant