Join Slack
The_snippet_that_causes_crash.kt
# getting-started
g
gabin
11/21/2018, 11:51 AM
The_snippet_that_causes_crash.kt
The_snippet_that_causes_crash.kt
t
Tolriq
11/21/2018, 12:09 PM
Read the error better 😉 The crash is at findAll probably because foundPosition have a wrong value.
👍 1
g
gabin
11/21/2018, 1:20 PM
indeed... The foundPosition was -1
i
ilya.gorbunov
11/21/2018, 8:16 PM
Could you please report the problem to
https://kotl.in/issue
along with the regex and the input string to reproduce it?
ilya.gorbunov
11/21/2018, 8:18 PM
Oh, I see, it seems you're passing negative start index to
findAll
. Anyway,
findAll
can be improved to fail earlier in this case.
ilya.gorbunov
11/21/2018, 8:27 PM
I've opened
https://youtrack.jetbrains.com/issue/KT-28356
to track that
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by