Unnecessary Regex compile

pull/37/head
Vitor Pamplona 2023-01-22 18:29:59 -03:00
rodzic 0c96d0a3fd
commit 38c17f9024
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -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")) {