Skip to content

Commit

Permalink
nip05: improve regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Feb 11, 2024
1 parent 8c78649 commit 04252aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip05.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ProfilePointer } from './nip19.ts'
* - 1: name (optional)
* - 2: domain
*/
export const NIP05_REGEX = /^(?:([\w.+-]+)@)?([\w.-]+)$/
export const NIP05_REGEX = /^(?:([\w.+-]+)@)?[\w_-]+(\.[\w_-]+)+$/

var _fetch: any

Expand Down

0 comments on commit 04252aa

Please sign in to comment.