BugFix for IndexOutOfBoundsException

This commit is contained in:
Vitor Pamplona
2023-07-02 15:50:07 -04:00
parent dc8c177f20
commit d110b9fbbf

View File

@@ -7,5 +7,6 @@ fun ByteArray.toShortenHex(): String {
}
fun String.toShortenHex(): String {
if (length <= 16) return this
return replaceRange(8, length - 8, ":")
}