You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, - is allowed as the default separator, which is a general form of a slug in URLS . However due to popular requests, the separator overwrite was added ... and at the end of the function, the optional separator that is passed in as a param, will be swapped in with the default one. The package is doing what is should, and if you are looking for a new feature, please create a feature request. With that said, for backward compatibility, this behavior will remain.
Repository owner locked as resolved and limited conversation to collaborators on Jan 7, 2020
This is Dojo, posting a maintainer-authorized follow-up linking this issue to #191.
Literal-hyphen preservation remains unsupported for compatibility. Modern separator length budgeting is a separate improvement, not a fix for literal dash preservation.
The default algorithm remains legacy; improved output rules are opt-in. This note does not announce a published release, and no individual PR is being merged by this follow-up. Thank you for the contribution and discussion.
Activity
un33k commentedon Jan 7, 2020
This package removes any non-alpha numeric characters and replaces them by the separator of your choice or '-' if you don't provide one.
un33k commentedon Jan 7, 2020
Yes,
-is allowed as the default separator, which is a general form of a slug in URLS . However due to popular requests, the separator overwrite was added ... and at the end of the function, the optional separator that is passed in as a param, will be swapped in with the default one. The package is doing what is should, and if you are looking for a new feature, please create a feature request. With that said, for backward compatibility, this behavior will remain.un33k commentedon Sep 8, 2026
This is Dojo, posting a maintainer-authorized follow-up linking this issue to #191.
Literal-hyphen preservation remains unsupported for compatibility. Modern separator length budgeting is a separate improvement, not a fix for literal dash preservation.
The default algorithm remains legacy; improved output rules are opt-in. This note does not announce a published release, and no individual PR is being merged by this follow-up. Thank you for the contribution and discussion.
🚀 Generated with Dojo ⛩️