Barazo lexicon schemas and TypeScript types barazo.forum
at main 5 lines 274 B view raw
1/** DID format regex (simplified, catches obvious malformed DIDs). */ 2export const didRegex = /^did:[a-z]+:[a-zA-Z0-9._:%-]+$/ 3 4/** AT Protocol record key format regex. Excludes "." and ".." per spec. */ 5export const recordKeyRegex = /^(?!\.{1,2}$)[a-zA-Z0-9._:~-]{1,512}$/