Issue 155 - fix StringIndexOutOfBoundException

This commit is contained in:
Sergey Babkin
2017-12-17 17:12:54 +01:00
committed by Amine Bou
parent 0055a503b3
commit 4c499abcdb
@@ -8,7 +8,7 @@ import java.util.*
fun String.toTextDrawableString(): String {
val textDrawable = StringBuilder()
for (s in this.split(" ".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()) {
for (s in this.split(" ".toRegex()).filter { !it.isEmpty() }.toTypedArray()) {
textDrawable.append(s[0])
}
return textDrawable.toString()
Internal Server Error - Amine's git
500 Internal Server Error

Gitea Version: 1.28.0+dev-211-ga30d865b78