···55 typeof browser !== "undefined" ? browser.storage.local : chrome.storage.local
6677// Regular expression to validate the DID format
88-const didRegex = /^did:plc:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+)*$/
88+const didRegex =
99+ /^did:plc:([a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+)*|((%[0-9A-Fa-f]{2})|[a-zA-Z0-9._-])+(:((%[0-9A-Fa-f]{2})|[a-zA-Z0-9._-])+)*$)/
9101011// Function to validate the DID string
1112function isValidDID(didString) {