Makes sure if the d component of an a-tag has :, it stays in the d-tag after parse.

This commit is contained in:
Vitor Pamplona 2024-09-16 18:10:54 -04:00
parent 28da06ef01
commit 6f44c02b5c

View File

@ -75,7 +75,7 @@ data class ATag(
relay: String?,
): ATag? =
try {
val parts = atag.split(":")
val parts = atag.split(":", limit = 3)
Hex.decode(parts[1])
ATag(parts[0].toInt(), parts[1], parts[2], relay)
} catch (t: Throwable) {