this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Adjust validation comments.

+4 -2
+4 -2
content.js
··· 4 4 const storage = 5 5 typeof browser !== "undefined" ? browser.storage.local : chrome.storage.local 6 6 7 - // Regular expression to validate the DID format 8 - // Make sure that we don't DoS the regex if someone supplies too large of a DID. 7 + // Make sure that we don't DoS the regex if someone supplies too large of a DID 8 + // 1024 was arbitratily chosen to limit performance impact, I couldn't find any specicied limits on DID length 9 9 const MAX_DID_LENGTH = 1024 10 + 11 + // Regular expression to validate the DID format 10 12 const didRegex = 11 13 /^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._-])+)*$)/ 12 14