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

How to not remove brackets? #26

Closed
stevecohenfr opened this issue Mar 29, 2019 · 2 comments
Closed

How to not remove brackets? #26

stevecohenfr opened this issue Mar 29, 2019 · 2 comments

Comments

@stevecohenfr
Copy link

I tried

customReplacements: [
                ['[', '['],
                [']', ']']
            ]

to force not remove brackets [] but still removed in my slugified string...

@sindresorhus sindresorhus changed the title How to not remove brackets ? How to not remove brackets? Jan 21, 2020
@sindresorhus
Copy link
Owner

What's the use-case? This probably is the same as #40 (comment). Slugify is meant to create a valid URL component.

@stevecohenfr
Copy link
Author

I really don't remember the use case, it was 1 year ago, I think I found another way ;)
Thanks for your answer !

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

2 participants