getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

Allow empty string as slug separator #201

Closed samnabi closed 7 years ago

samnabi commented 7 years ago

Right now, the str::slug() method doesn't allow an empty string as a separator. It would be good to modify this function to differentiate between NULL and '', and allow the empty string as a separator.

Right now I'm using this function to achieve the effect: str_replace('-', '', str::slug($string))

bastianallgeier commented 7 years ago

I just implemented this on the develop branch.

samnabi commented 7 years ago

Thanks!