mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 23:46:50 +01:00
Makes sure if the d component of an a-tag has :, it stays in the d-tag after parse.
This commit is contained in:
@@ -75,7 +75,7 @@ data class ATag(
|
|||||||
relay: String?,
|
relay: String?,
|
||||||
): ATag? =
|
): ATag? =
|
||||||
try {
|
try {
|
||||||
val parts = atag.split(":")
|
val parts = atag.split(":", limit = 3)
|
||||||
Hex.decode(parts[1])
|
Hex.decode(parts[1])
|
||||||
ATag(parts[0].toInt(), parts[1], parts[2], relay)
|
ATag(parts[0].toInt(), parts[1], parts[2], relay)
|
||||||
} catch (t: Throwable) {
|
} catch (t: Throwable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user