mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Make server verification case insensitive
This commit is contained in:
parent
7d1482aa51
commit
9231d2d930
1 changed files with 3 additions and 2 deletions
|
@ -105,10 +105,11 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => {
|
||||||
return re.test(data);
|
return re.test(data);
|
||||||
break;
|
break;
|
||||||
case 'eq':
|
case 'eq':
|
||||||
return data == checkClaim;
|
return data.toLowerCase() == checkClaim.toLowerCase();
|
||||||
break;
|
break;
|
||||||
case 'oneOf':
|
case 'oneOf':
|
||||||
return data.includes(checkClaim);
|
let re = new RegExp(checkClaim, "gi");
|
||||||
|
return re.test(data.join("|"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue