You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AT_URI_RE=re.compile(
r'^at://'# Must start with at://r'('# Authority group start# For DIDs: Only allowed chars are letters, numbers, period, hyphen, and percentr'did:[a-z]+:[a-zA-Z0-9.-]+'# Notice removed underscore from allowed charsr'|'# or# Handle: require 2+ segments, TLD can't start with digitr'[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?'# First segmentr'(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*'# Middle segmentsr'\.[a-zA-Z][a-zA-Z0-9-]*'# TLD must start with letterr')'# Authority group endr'(?:'# Optional path groupr'/[a-z][a-zA-Z0-9-]*(\.[a-z][a-zA-Z0-9-])+'# NSIDr'(?:/[A-Za-z0-9._:~-]+)?'# Optional record keyr')?$'
)
but it was unclear to me how exactly to square the new interop tests (sourced from here) with the current validation in packages/atproto_core/uri/uri.py:AtUri (which was probably me just not understanding something 🙂 )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Note
wip, i will update this over time when possible 🙂
#451 adds the following regex into
string_formats.py
but it was unclear to me how exactly to square the new interop tests (sourced from here) with the current validation in
packages/atproto_core/uri/uri.py:AtUri
(which was probably me just not understanding something 🙂 )see #451 (comment) for context
here are the upstream
atproto
docs I referencedrelated to #478
Beta Was this translation helpful? Give feedback.
All reactions