mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Remove newlines before checking equality
This commit is contained in:
parent
6c964bf052
commit
28742ede99
1 changed files with 1 additions and 1 deletions
|
@ -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