We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did matcher regex used in the parse function (https://github.com/decentralized-identity/did-resolver/blob/master/src/resolver.ts#L166) uses an incorrect regex according to the specification (https://www.w3.org/TR/did-core/#did-syntax). Specifically:
did:method::id
did:method:%1p
did:method:%1f
The matcher regex should conform to the did specification.
parse('did:CAPITALS:id') { did: 'did:CAPITALS:id', method: 'CAPITALS', id: 'id', didUrl: 'did:CAPITALS:id' }
null
ParsedDid
None
The text was updated successfully, but these errors were encountered:
4f71bc5
chore(release): 3.1.3 [skip ci]
571c15e
## [3.1.3](3.1.2...3.1.3) (2021-10-26) ### Bug Fixes * update regex to match DID specification ([#105](#105)) ([4f71bc5](4f71bc5)), closes [#104](#104)
🎉 This issue has been resolved in version 3.1.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Current Behavior
Did matcher regex used in the parse function (https://github.com/decentralized-identity/did-resolver/blob/master/src/resolver.ts#L166) uses an incorrect regex according to the specification (https://www.w3.org/TR/did-core/#did-syntax). Specifically:
did:method::id
)did:method:%1p
is invalid whiledid:method:%1f
is valid)Expected Behavior
The matcher regex should conform to the did specification.
Failure Information
Steps to Reproduce
null
OR with an invalid did and parse will return aParsedDid
Environment Details
Failure Logs/Screenshots
None
Alternatives you considered
None
The text was updated successfully, but these errors were encountered: