This allows you to specify a delimeter for the string/toSlug function. I also added the convenience function string/underscore that is the same as string/hyphenate, but uses an underscore as the delimeter instead of a hyphen.
This change should be non-breaking, since the added parameter on string/toSlug defaults to a hyphen, which it used all the time before.
I also made string/hyphenate to have a code style closer to string/toSlug. This does not change any of the semantics of string/hyphenate, so not sure if I should have incremented the version or not (right now it has the version incremented, although I could change that).
This allows you to specify a delimeter for the
string/toSlug
function. I also added the convenience functionstring/underscore
that is the same asstring/hyphenate
, but uses an underscore as the delimeter instead of a hyphen.This change should be non-breaking, since the added parameter on
string/toSlug
defaults to a hyphen, which it used all the time before.I also made
string/hyphenate
to have a code style closer tostring/toSlug
. This does not change any of the semantics ofstring/hyphenate
, so not sure if I should have incremented the version or not (right now it has the version incremented, although I could change that).