Skip to content

Commit

Permalink
Add hyphen to BUNKER_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
dtonon authored and fiatjaf committed Apr 20, 2024
1 parent 1e9f828 commit c12ddd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip46.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c12ddd3

Please sign in to comment.