Browse Source

fix: bunker regex & add addtitonal nostrconnect relay (#417)

imwald
hoppe 9 months ago committed by GitHub
parent
commit
04426040d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/constants.ts
  2. 2
      src/providers/NostrProvider/nip46.ts

2
src/constants.ts

@ -91,4 +91,4 @@ export const NIP_96_SERVICE = [ @@ -91,4 +91,4 @@ export const NIP_96_SERVICE = [
]
export const DEFAULT_NIP_96_SERVICE = 'https://nostr.build'
export const DEFAULT_NOSTRCONNECT_RELAY = ['wss://relay.nsec.app/']
export const DEFAULT_NOSTRCONNECT_RELAY = ['wss://relay.nsec.app/', 'wss://nos.lol/', 'wss://relay.primal.net']

2
src/providers/NostrProvider/nip46.ts

@ -6,7 +6,7 @@ import { decrypt, encrypt, getConversationKey } from "nostr-tools/nip44" @@ -6,7 +6,7 @@ import { decrypt, encrypt, getConversationKey } from "nostr-tools/nip44"
import { RelayRecord } from "nostr-tools/relay"
export const BUNKER_REGEX = /^bunker:\/\/([0-9a-f]{64})\??([?/w:.=&%-]*)$/
export const BUNKER_REGEX = /^bunker:\/\/([0-9a-f]{64})\??([?/\w:.=&%-]*)$/
// const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/

Loading…
Cancel
Save