@aviarytech/did-peer
Advanced tools
Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "@aviarytech/did-peer", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -70,3 +70,3 @@ import { Buffer } from 'buffer/index.js'; | ||
export const isPeerDID = (did) => { | ||
return new RegExp('^did:peer:(([01](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))|(2((\.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))+(\.(S)[0-9a-zA-Z=]*)?)))$').test(did); | ||
return new RegExp('^did:peer:(([01](z)([1-9a-km-zA-HJ-NP-Z]{44,47}))|(2((\.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{44,47}))+(\.(S)[0-9a-zA-Z=]*)?)))$').test(did); | ||
}; | ||
@@ -73,0 +73,0 @@ export const createDIDDocument = (did, authKeys, encKeys, services) => { |