Experiments for playing with atproto in Gleam.
23

Configure Feed

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

๐Ÿ› Fix some minor bugs with nsid parsing.

Hayleigh Thompson (Jul 16, 2026, 9:06 AM +0200) 99720e03 44d807c9

+3 -2
+3 -2
src/at/nsid.gleam
··· 111 111 "" -> 112 112 // The name segment must not start with a digit. 113 113 case string.slice(input, slice_offset, slice_length) { 114 - "1" <> _ 114 + "0" <> _ 115 + | "1" <> _ 115 116 | "2" <> _ 116 117 | "3" <> _ 117 118 | "4" <> _ ··· 171 172 172 173 // An authority segment cannot start or end with a hyphen. 173 174 "-." <> _ -> Error(Nil) 174 - "-" if slice_length == 0 -> Error(Nil) 175 + "-" <> _ if slice_length == 0 -> Error(Nil) 175 176 176 177 // The first authority segment cannot start with a digit. 177 178 "0" <> _