Skip to content
Snippets Groups Projects
Commit 171b2a52 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Corrects a bug in the previous implementation

parent 87a9fa74
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ fun CharSequence.lastWordIndices(cursor: Int = this.length,
}
return if (end - start > 0 && start >= 0 && end <= length) {
start..end
start until end
} else {
null
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment