dodo / node-slug

slugifies even utf-8 chars!
MIT License
1.08k stars 92 forks source link

Unable to turn off symbols replacement #95

Open tsunday opened 6 years ago

tsunday commented 6 years ago

Hi,

I tried with custom options object and the usage looks like this:

const slugifiedValue = slug(value, { lower: true, symbols: false })

The library still convetes symbols like < or <3 to their representations ('less', 'love'). Options dict isn't completely ignored, because lower option is fine. The problem is with symbols option - it's not taken into consideration by the current implementation.

Environment: React/Webpack project executed in Chrome browser