purescript/purescript-strings

`indexOf'` gives incorrect result for empty prefix when starting index is out of bounds

LiamGoodacre opened this issue · 2 comments

The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2.

This is fixed by your changes now, isn't it?

Yup 😄, fixed by #41
I'd forgotten that I filed this issue.

Thanks for merging!