Skip to content

Commit

Permalink
nip19: fix ncryptsec type guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 9, 2024
1 parent 45b25c5 commit 13ac04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip19.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NostrTypeGuard = {
isNSec: (value?: string | null): value is NSec => /^nsec1[a-z\d]{58}$/.test(value || ''),
isNPub: (value?: string | null): value is NPub => /^npub1[a-z\d]{58}$/.test(value || ''),
isNote: (value?: string | null): value is Note => /^note1[a-z\d]+$/.test(value || ''),
isNcryptsec: (value?: string | null): value is Note => /^ncryptsec1[a-z\d]+$/.test(value || ''),
isNcryptsec: (value?: string | null): value is Ncryptsec => /^ncryptsec1[a-z\d]+$/.test(value || ''),
}

export const Bech32MaxSize = 5000
Expand Down

0 comments on commit 13ac04b

Please sign in to comment.