Closed urabenstein closed 6 years ago
Hey @urabenstein hope you're still around and seeing notifications! Apologies for not getting to this pull request earlier, I believe I had postponed the pattern matcher work until Frederik is back around.
Thanks for the pull request - I ran into some malformed unicode panics myself just now #10 and will try to incorporate a version of your upgrades.
Would have loved to have a test btw, since now I'm a little uncertain if I will patch the correct issues.
Fixed via #eb16446 , just doubled down on using .len_utf8
when doing char arithmetic
Thanks for the PR, helped a lot @urabenstein !
Workaround to prevent panics occurring because byte indices do not point to char boundaries.