this repo has no description
0
fork

Configure Feed

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

DID validation regex improvements.

+2 -1
+2 -1
content.js
··· 5 5 typeof browser !== "undefined" ? browser.storage.local : chrome.storage.local 6 6 7 7 // Regular expression to validate the DID format 8 - const didRegex = /^did:plc:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+)*$/ 8 + const didRegex = 9 + /^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._-])+)*$)/ 9 10 10 11 // Function to validate the DID string 11 12 function isValidDID(didString) {