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

Ignore specific characters #75

Open
webchaz opened this issue May 10, 2016 · 3 comments
Open

Ignore specific characters #75

webchaz opened this issue May 10, 2016 · 3 comments

Comments

@webchaz
Copy link

webchaz commented May 10, 2016

Is there a way to ignore certain characters? Specifically, I'm using this to clean up some image names, but I don't want to remove the period between the filename and extension, would be nice to just ignore periods.

Thanks

@cyberwombat
Copy link

Just figured out that adding remove: null as option leaves the period in place.

@netpedro-com
Copy link

netpedro-com commented Dec 3, 2016

It's really true, remove: null ignore periods/dots. But it's very difficult to guess this only reading README.md. Please, add a example to README.md.

@thinklinux
Copy link

So this means that pretty mode is the default one not the rfc3986 . I couldn't figure this out from the readme as well :) @cyberwombat Thanks ^^

You can do slug.defaults.mode ='rfc3986'; as well.

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

No branches or pull requests

4 participants