`'x/'.split('/')` returns the single-element array `['x']` but it should return the two-element array `['x', '']`.