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

Incorrect dashes #31

Closed
paleite opened this issue May 3, 2019 · 5 comments · Fixed by #36
Closed

Incorrect dashes #31

paleite opened this issue May 3, 2019 · 5 comments · Fixed by #36

Comments

@paleite
Copy link

paleite commented May 3, 2019

slugify('XBOX360'); returns "xbo-x360". But I expected the value to be "xbox360"

@kainiedziela
Copy link

kainiedziela commented Jun 4, 2019

You should pass a following options param: { decamelize: false }.

@TiagoDanin
Copy link
Contributor

@paleite
Copy link
Author

paleite commented Jun 11, 2019

Thanks, but that’s not the same dependency.
This issue is about @sindresorhus/slugify: https://runkit.com/paleite/5cffe6e38b563f001ac2d5ea

@0x0480
Copy link

0x0480 commented Jul 3, 2019

Same issue with "3D" it returns 3-d lol

@notlmn
Copy link

notlmn commented Jul 3, 2019

As mentioned by @kainiedziela, use {decamelize: false}.

image

TiagoDanin added a commit to TiagoDanin-Forks/slugify that referenced this issue Feb 17, 2020
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 a pull request may close this issue.

5 participants