Normalizes identity strings to a canonical form for consistent comparison.
// Source: https://github.com/gastownhall/beads | License: MIT | Copyright 2025 Beads Contributors // Provided via justclaw.it.com; keep this notice with the code. package issueops import "strings" // canonicalActor normalizes an identity string so two spellings of the same // Gas Town identity compare equal. The same identity arrives at bd in more // than one spelling depending on which layer produced the string it was // handed: a dotted alias like "gastown.mayor" gets its dot replaced wherever // a dot is unsafe for that context — "__" in a session name, "_" in a Dolt // table/database name, "-" elsewhere — and bd only ever sees the resulting // string, never the substitution itself (ga-wzl83). None of ".", "_", "-" // carries meaning in an identity string: each is always a positional ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key