Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

allow handles to start with a number (#1231)

* allow handles to start with a number

* don't allow leading hyphen

authored by

Eric Bailey and committed by
GitHub
4cc2695d 257c15ec

+1 -1
+1 -1
src/lib/strings/handles.ts
··· 3 3 str = str.slice(0, 20) 4 4 } 5 5 str = str.toLowerCase() 6 - return str.replace(/^[^a-z]+/g, '').replace(/[^a-z0-9-]/g, '') 6 + return str.replace(/^[^a-z0-9]+/g, '').replace(/[^a-z0-9-]/g, '') 7 7 } 8 8 9 9 export function createFullHandle(name: string, domain: string): string {