nip05: fix regex group 2 matching.

This commit is contained in:
fiatjaf 2024-02-12 07:41:44 -03:00
parent 7d332605ee
commit cf766cd835
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { ProfilePointer } from './nip19.ts'
* - 1: name (optional)
* - 2: domain
*/
export const NIP05_REGEX = /^(?:([\w.+-]+)@)?[\w_-]+(\.[\w_-]+)+$/
export const NIP05_REGEX = /^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/
var _fetch: any