underscore.string icon indicating copy to clipboard operation
underscore.string copied to clipboard

.slugify: added optional second argument for customisable separator

Open paulkoegel opened this issue 12 years ago • 3 comments

hey, needed a slug with underscores instead of dashes as a separator in one of my projects. added a second optional argument to .slugify to make it more customisable.

realising the call that replaces .dasherize looks very ugly and is not perfect. as soon as i get some feedack on whether you agree on the customisability of .slugify, i'd suggest writing an equally customisable .dasherize (would need a good name for that ;)

what do you think?

paulkoegel avatar Dec 12 '13 14:12 paulkoegel

:+1:

DonSchado avatar Dec 12 '13 14:12 DonSchado

+1 for this feature.

lawlesscreation avatar May 12 '14 08:05 lawlesscreation

+1

kfreiman avatar Jul 24 '14 14:07 kfreiman