a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

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

fix(lexicons): handle syntax conformance

Mary cfbbc3e9 d17735ec

+6 -1
+5
.changeset/common-tips-behave.md
··· 1 + --- 2 + '@atcute/lexicons': patch 3 + --- 4 + 5 + fix handle syntax conformance
+1 -1
packages/lexicons/lexicons/lib/syntax/handle.ts
··· 5 5 export type Handle = `${string}.${string}`; 6 6 7 7 const HANDLE_RE = 8 - /^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+([a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z])$/; 8 + /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/; 9 9 10 10 // #__NO_SIDE_EFFECTS__ 11 11 export const isHandle = (input: unknown): input is Handle => {