From ea95f3014d8e8947dc757233e1235ee29b99c787 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 21 Sep 2022 10:03:18 +0200 Subject: [PATCH] Fix hash regex --- src/verifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verifications.js b/src/verifications.js index 40534de..7e1b7b3 100644 --- a/src/verifications.js +++ b/src/verifications.js @@ -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) {