node-slug icon indicating copy to clipboard operation
node-slug copied to clipboard

add an option for allowed characters

Open dcharbonnier opened this issue 11 years ago • 3 comments

This block upgrade of slug for some situations.

dcharbonnier avatar Oct 20 '14 18:10 dcharbonnier

Could you please add more detail about your idea? I'm not sure what you mean.

dodo avatar Apr 18 '15 09:04 dodo

I'd like to make exceptions to the char map like:

slug.charmap['ä'] = 'ä';
slug.charmap['Ä'] = 'Ä';
slug('äÄ öÖ'); // returns 'oO' instead of 'äÄ-oO'

Maybe @dcharbonnier means the same thing? Is this possible?

kpuputti avatar May 29 '15 08:05 kpuputti

if we can not manage a consistent slug between versions there is cases (the resulting slug is stored somewhere) where we can not update this lib

dcharbonnier avatar Mar 11 '16 15:03 dcharbonnier