`indexOf'` gives incorrect result for empty prefix when starting index is out of bounds
LiamGoodacre opened this issue · 2 comments
LiamGoodacre commented
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.
garyb commented
This is fixed by your changes now, isn't it?
LiamGoodacre commented
Yup 😄, fixed by #41
I'd forgotten that I filed this issue.
Thanks for merging!