Unnecessary Regex compile

This commit is contained in:
Vitor Pamplona 2023-01-22 18:29:59 -03:00
parent 0c96d0a3fd
commit 38c17f9024

View File

@ -26,8 +26,6 @@ fun HexKey.toDisplayHexKey(): String {
}
fun decodePublicKey(key: String): ByteArray {
val pattern = Pattern.compile(".+@.+\\.[a-z]+")
return if (key.startsWith("nsec")) {
Persona(privKey = key.bechToBytes()).pubKey
} else if (key.startsWith("npub")) {