diff --git a/src/nostr/nip05.ts b/src/nostr/nip05.ts index aabf5b93eb66f6f69bd2bf8bc1cf497473891886..a5787aadfadb86799a108d5ff827ff407590caf8 100644 --- a/src/nostr/nip05.ts +++ b/src/nostr/nip05.ts @@ -14,7 +14,7 @@ import type { Context } from '@/deps.ts'; async function nostrController(c: Context) { const name = c.req.query('name'); - if (!/^\w+_at_[a-z0-9.-]+$/i.test(name)) { + if (!/^[a-z0-9.-]+_at_[a-z0-9.-]+$/i.test(name)) { return c.json({ error: 'Invalid name.' }, 400); }