From df520aabe2cf827105e71506a35ddfb6f253329e Mon Sep 17 00:00:00 2001 From: ghobs91 Date: Fri, 29 Sep 2023 06:06:04 -0400 Subject: [PATCH] updated handle regex to support the formatting used by bridgyfeds bluesky <=> mastodon bridge accounts --- src/nostr/nip05.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr/nip05.ts b/src/nostr/nip05.ts index aabf5b9..a5787aa 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); } -- GitLab