Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remover option #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add remover option #61

wants to merge 1 commit into from

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