Closed tdrhq closed 3 years ago
Hello,
At first sight it looks ok, but can you add more tests, especially the ones at the limit? We never know…
Similar to
split
, example we split from the end
*except?
And don't forget the README.
thanks for this addition, functions to ease working with pathnames are welcome.
@vindarel fixed, thanks for the review!
Thanks again for your contribution!
There are many cases where rsplit is useful: dealing with directory strings, (and in my case) dealing with java style package names.
(PS. Is the algorithm I used correct? I think it is, but there may be an edge case that I haven't thought of)