diff --git a/nip05.ts b/nip05.ts index b5dccd2..d1d6c06 100644 --- a/nip05.ts +++ b/nip05.ts @@ -36,6 +36,8 @@ export async function queryProfile( name = '_' } + if (!name.match(/^[a-z0-9-_]+$/)) return null + let res = await ( await _fetch(`https://${domain}/.well-known/nostr.json?name=${name}`) ).json()