mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-04 05:53:08 +02:00
BugFix for IndexOutOfBoundsException
This commit is contained in:
@@ -7,5 +7,6 @@ fun ByteArray.toShortenHex(): String {
|
||||
}
|
||||
|
||||
fun String.toShortenHex(): String {
|
||||
if (length <= 16) return this
|
||||
return replaceRange(8, length - 8, ":")
|
||||
}
|
||||
|
Reference in New Issue
Block a user