feat: polish

This commit is contained in:
2024-01-17 08:50:43 +07:00
parent 33dd8b1d8a
commit c29b4e173e
8 changed files with 60 additions and 49 deletions

View File

@@ -105,7 +105,11 @@ export class Ark {
public getCleanPubkey(pubkey: string) {
try {
let hexstring = pubkey.replace("nostr:", "").split("'")[0].split(".")[0];
let hexstring = pubkey
.replace("nostr:", "")
.split("'")[0]
.split(".")[0]
.split("?")[0];
if (
hexstring.startsWith("npub1") ||