did-resolver
Advanced tools
Comparing version 0.0.7-alpha.0 to 0.0.7
@@ -65,3 +65,3 @@ "use strict"; | ||
throw new Error('Missing DID'); | ||
var sections = did.match(/^did:([a-zA-Z0-9_]+):([[a-zA-Z0-9_.-:]+)(\/[^#]*)?(#.*)?$/); | ||
var sections = did.match(/^did:([a-zA-Z0-9_]+):([:[a-zA-Z0-9_.-]+)(\/[^#]*)?(#.*)?$/); | ||
if (sections) { | ||
@@ -68,0 +68,0 @@ var parts = { did: sections[0], method: sections[1], id: sections[2] }; |
{ | ||
"name": "did-resolver", | ||
"version": "0.0.7-alpha.0", | ||
"version": "0.0.7", | ||
"description": "Resolve DID documents", | ||
@@ -5,0 +5,0 @@ "main": "lib/resolver.js", |
@@ -90,3 +90,3 @@ // Copyright 2018 ConsenSys AG | ||
if (did === '') throw new Error('Missing DID') | ||
const sections = did.match(/^did:([a-zA-Z0-9_]+):([[a-zA-Z0-9_.-:]+)(\/[^#]*)?(#.*)?$/) | ||
const sections = did.match(/^did:([a-zA-Z0-9_]+):([:[a-zA-Z0-9_.-]+)(\/[^#]*)?(#.*)?$/) | ||
if (sections) { | ||
@@ -93,0 +93,0 @@ const parts : ParsedDID = {did: sections[0], method: sections[1], id: sections[2]} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27453