From df896db47307d6e1a57395e5fd703f7c45c69638 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 10 Jan 2021 12:26:18 +0100 Subject: [PATCH] Fix regex skipping some claims --- src/signatures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signatures.js b/src/signatures.js index 2a53d5b..890a52a 100644 --- a/src/signatures.js +++ b/src/signatures.js @@ -41,7 +41,7 @@ const verify = (signature, opts) => { let sigClaims = [] text.split('\n').forEach((line, i) => { - const match = line.match(/^(.*)\=(.*)$/i) + const match = line.match(/^([a-zA-Z0-9]*)\=(.*)$/i) if (!match) { return }