This PR handle the case where some text ends by an \n (ex: 'something\n'). From String.split docs, trailing empty strings will be discarded.. That cause the exception since there are less element than expected in the resulting array.
From this screenshot, you can see the bug in action.
This PR handle the case where some text ends by an
\n
(ex: 'something\n'). FromString.split
docs,trailing empty strings will be discarded.
. That cause the exception since there are less element than expected in the resulting array.From this screenshot, you can see the bug in action.![Screenshot from 2024-05-08 07-44-44](https://github.com/oliexdev/openScale/assets/1142322/087a608f-1085-4892-872c-34a7a62e952f)
Thanks for the app oliexdev :)
Fix #935