The_snippet_that_causes_crash.kt
# getting-started
g
The_snippet_that_causes_crash.kt
t
Read the error better 😉 The crash is at findAll probably because foundPosition have a wrong value.
👍 1
g
indeed... The foundPosition was -1
i
Could you please report the problem to https://kotl.in/issue along with the regex and the input string to reproduce it?
Oh, I see, it seems you're passing negative start index to
findAll
. Anyway,
findAll
can be improved to fail earlier in this case.