dodo / node-slug

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

Slug does not remove Unicode Characters #61

Open ddaza opened 8 years ago

ddaza commented 8 years ago

Tried to make it so slug removes some special characters, but it seems to be broken.

var slugName = slug(name, {lower: true, remove: /®/g})

is not working

var slugName = slug(name, {lower: true, remove: new RegExp('\u00AE', 'g')})

didn't work either.

thanks!