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
1 changed files with 1 additions and 1 deletions

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