1
0
Fork 0
mirror of https://github.com/Corewala/Buran synced 2024-12-21 23:32:40 +00:00

Fixed attention guide crash with long non-alphanumeric words

This commit is contained in:
Corewala 2022-07-26 12:09:00 -04:00
parent 467e3fc0b7
commit 4a451ef5ca

View file

@ -305,7 +305,7 @@ class GemtextAdapter(
var offset = 1
if (component.length - offset > 1) {
while (!component.substring(offset).first().isLetterOrDigit()) {
while ((component.length - offset > 1) and !component.substring(offset).first().isLetterOrDigit()) {
offset += 1
}
val index = (component.length - offset) / 2