forked from Mirrors/keyoxide-web
Merge branch 'dev' into dev
This commit is contained in:
commit
988633267f
4 changed files with 7 additions and 3 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.2.7] - 2020-09-10
|
||||
### Fixed
|
||||
- Remove newlines before checking equality
|
||||
|
||||
## [2.2.6] - 2020-09-10
|
||||
### Fixed
|
||||
- Fix handling of keys without selfCertifications
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "keyoxide-web",
|
||||
"version": "2.2.6",
|
||||
"version": "2.2.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "keyoxide-web",
|
||||
"version": "2.2.6",
|
||||
"version": "2.2.7",
|
||||
"description": "A modern, secure and privacy-friendly platform to establish your decentralized online identity",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
|
@ -106,7 +106,7 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => {
|
|||
return re.test(data);
|
||||
break;
|
||||
case 'eq':
|
||||
return data.toLowerCase() == checkClaim.toLowerCase();
|
||||
return data.replace(/\r?\n|\r/, '').toLowerCase() == checkClaim.toLowerCase();
|
||||
break;
|
||||
case 'oneOf':
|
||||
re = new RegExp(checkClaim, "gi");
|
||||
|
|
Loading…
Reference in a new issue