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

Can I keep consecutive "-" symbol? #97

Closed
laggardkernel opened this issue Oct 29, 2020 · 1 comment
Closed

Can I keep consecutive "-" symbol? #97

laggardkernel opened this issue Oct 29, 2020 · 1 comment

Comments

@laggardkernel
Copy link

>>> s
'=--comfy-children-s-adult-diaper-skirt-shorts-2-in-1'

>>> slugify(s)
'comfy-children-s-adult-diaper-skirt-shorts-2-in-1'

>>> slugify(s, regex_pattern = r'[^-=a-z0-9_]+')
'=-comfy-children-s-adult-diaper-skirt-shorts-2-in-1'

Some of the content is already slugified, I wanna keep it untouched.

@laggardkernel
Copy link
Author

Sorry to bother you. Seems consecutive "-" symbols are invalid in URL in my app.

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

1 participant