Fixes #707 - correct guard clause in `split` helper.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 23 Nov 2015 20:24:25 +0000 (20:24 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 23 Nov 2015 20:24:25 +0000 (20:24 +0000)
commit69e975fdaa5ed31178c9d84bfa425eecaf42af1d
tree4043c11127a024213ab105e39a226fe132e5b841
parent09748be7f474a96a9a1e0568899df35409fab5cd
Fixes #707 - correct guard clause in `split` helper.

Turns out the case with no separators and a string pattern was never
caught by a guard clause.

Thanks to @alexlamsl for spotting it.
lib/utils/split.js