chore: Update translations

This commit is contained in:
2023-11-17 21:52:03 +00:00
parent 9721aa506a
commit e3cb397d1d
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ export function tryParseNostrLink(link: string, prefixHint?: NostrPrefix): Nostr
}
export function trimNostrLink(link: string) {
let entity = (link.startsWith("web+nostr:") || link.startsWith("nostr:")) ? link.split(":")[1] : link;
let entity = link.startsWith("web+nostr:") || link.startsWith("nostr:") ? link.split(":")[1] : link;
// trim any non-bech32 chars
entity = entity.match(/(n(?:pub|profile|event|ote|addr|req)1[acdefghjklmnpqrstuvwxyz023456789]+)/)?.[0] ?? entity;