Merge branch 'dev' into dev

This commit is contained in:
yisraeldov 2020-09-11 08:15:04 +02:00
commit 988633267f
4 changed files with 7 additions and 3 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [2.2.7] - 2020-09-10
### Fixed
- Remove newlines before checking equality
## [2.2.6] - 2020-09-10 ## [2.2.6] - 2020-09-10
### Fixed ### Fixed
- Fix handling of keys without selfCertifications - Fix handling of keys without selfCertifications

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "keyoxide-web", "name": "keyoxide-web",
"version": "2.2.6", "version": "2.2.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "keyoxide-web", "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", "description": "A modern, secure and privacy-friendly platform to establish your decentralized online identity",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {

View file

@ -106,7 +106,7 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => {
return re.test(data); return re.test(data);
break; break;
case 'eq': case 'eq':
return data.toLowerCase() == checkClaim.toLowerCase(); return data.replace(/\r?\n|\r/, '').toLowerCase() == checkClaim.toLowerCase();
break; break;
case 'oneOf': case 'oneOf':
re = new RegExp(checkClaim, "gi"); re = new RegExp(checkClaim, "gi");