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]
## [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
View file

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

View file

@ -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": {

View file

@ -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");