handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs
20
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: check if did:key is valid

Mary b0b78cd1 e4a1fb41

+1 -1
+1 -1
src/api/types/strings.ts
··· 24 24 25 25 export const didKeyString = v.pipe( 26 26 v.string(), 27 - v.check((str) => str.length >= 9 && str.startsWith('did:key:')), 27 + v.regex(/^did:key:z[a-km-zA-HJ-NP-Z1-9]+$/, 'must be a valid did:key'), 28 28 );