From c12ddd3c538073ae8e43cf1199a750c0abb90531 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Fri, 19 Apr 2024 23:20:24 +0200 Subject: [PATCH] Add hyphen to BUNKER_REGEX --- nip46.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip46.ts b/nip46.ts index 6a5449e..96d1242 100644 --- a/nip46.ts +++ b/nip46.ts @@ -17,7 +17,7 @@ export function useFetchImplementation(fetchImplementation: any) { _fetch = fetchImplementation } -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@]+$/ export type BunkerPointer = {