sindresorhus / slugify

Slugify a string
MIT License
2.56k stars 81 forks source link

Incorrect dashes #31

Closed paleite closed 4 years ago

paleite commented 5 years ago

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

kainiedziela commented 5 years ago

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

TiagoDanin commented 5 years ago

image https://runkit.com/tiagodanin/5cf6b2894117be001aa4a297 No problem here...

paleite commented 5 years ago

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

0x0480 commented 5 years ago

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

notlmn commented 5 years ago

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

image