ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

I've always been curious about this, but why does the syntax package include an "ensureValid[identifier]" function and an "ensureValid[identifier]Regex" function? Such as "ensureValidDid" and"ensureValidDidRegex". Is there they different in terms of results? If not, then I don't understand.

May 7, 2025, 12:18 AM

Record data

{
  "uri": "at://did:plc:l5ppogsebmhgu7gmw27bzqk3/app.bsky.feed.post/3lok4qzebyc2g",
  "cid": "bafyreifeulaqvpwrozskjaiehwzx4dbzjzma6gqf6umstt2fn7l2kqulg4",
  "value": {
    "text": "I've always been curious about this, but why does the syntax package include an \"ensureValid[identifier]\" function and an \"ensureValid[identifier]Regex\" function? Such as \"ensureValidDid\" and\"ensureValidDidRegex\".\n\nIs there they different in terms of results? If not, then I don't understand.",
    "$type": "app.bsky.feed.post",
    "langs": [
      "en"
    ],
    "createdAt": "2025-05-07T00:18:59.246Z"
  }
}