dodo / node-slug

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

Support empty string as replacement #28

Closed Zertz closed 9 years ago

Zertz commented 9 years ago

This change allows using an empty string ('') as a replacement.

Zertz commented 9 years ago

I didn't understand why these tests failed, only to realize that it's because of 'pretty' mode. They still pass in 'rfc3986' mode.

I'll close this and make a cleaner PR from a fork with fixed tests.