Fix hash regex

This commit is contained in:
Yarmo Mackenbach 2022-09-21 10:03:18 +02:00
parent f83713f256
commit ea95f3014d
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -34,7 +34,7 @@ const containsProof = async (data, fingerprint, claimFormat) => {
// Check for hashed proof
if (!result) {
const hashRe = /\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,.]+)+/g
const hashRe = /\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,./]+)+/g
let match
while (!result && (match = hashRe.exec(data)) != null) {