dodo / node-slug

slugifies even utf-8 chars!
MIT License
1.07k stars 94 forks source link

add an option for allowed characters #26

Open dcharbonnier opened 10 years ago

dcharbonnier commented 10 years ago

This block upgrade of slug for some situations.

dodo commented 9 years ago

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

kpuputti commented 9 years ago

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?

dcharbonnier commented 8 years ago

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