fix(nip05): allow dot in name

This commit is contained in:
channelninja
2023-04-09 16:38:35 +02:00
committed by fiatjaf_
parent 94b382a49f
commit 731705047a
2 changed files with 6 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ export async function queryProfile(
name = '_'
}
if (!name.match(/^[A-Za-z0-9-_]+$/)) return null
if (!name.match(/^[A-Za-z0-9-_.]+$/)) return null
if (!domain.includes('.')) return null
let res