codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

FR: change 'implode' at 'flatten' to configurable pattern #89

Closed zonky2 closed 7 years ago

zonky2 commented 7 years ago

look at https://github.com/codefog/contao-haste/blob/master/library/Haste/Util/StringUtil.php#L193

at different use cases, I need other pattern as , e.g. without space after comma or pipe or slash

its possible to change to a more flexible pattern?

Toflar commented 7 years ago

Feel free to submit a PR with the implode glue as 4th argument if you really feel like this has to go into haste. You could also just copy the code to your own class and modify it to your needs.

zonky2 commented 7 years ago

o.k. I´ll try it...

qzminski commented 7 years ago

Merged in d317cd91417bdd9b61c860fcca20f32e6588e32f.