node-slug
node-slug copied to clipboard
Turn characters like ?, @, # to hyphen instead of just removing them
Right now aaa??@#bbb becomes aaabbb, generated slug would be more readable if it were to become aaa-bbb.
why the hell is there aaa??@#bb in slug ??
are-you-crazy-----
@phuyem It's simply an example.
+1 for this! There should always be separator for any removed/replaced characters. Another example:
aaa&&&&bbb
Turns into:
aaaandandaaa
But I believe the better result would be this:
aaa-and-and-and-and-bbb