···55 typeof browser !== "undefined" ? browser.storage.local : chrome.storage.local
6677// Make sure that we don't DoS the regex if someone supplies too large of a DID
88-// 1024 was arbitratily chosen to limit performance impact, I couldn't find any specicied limits on DID length
99-const MAX_DID_LENGTH = 1024
88+const MAX_DID_LENGTH = 255
1091110// Regular expression to validate the DID format
1211// https://w3c.github.io/did-core/#did-syntax