Fix regex skipping some claims

This commit is contained in:
Yarmo Mackenbach 2021-01-10 12:26:18 +01:00
parent 8d2b935565
commit df896db473

View file

@ -41,7 +41,7 @@ const verify = (signature, opts) => {
let sigClaims = [] let sigClaims = []
text.split('\n').forEach((line, i) => { text.split('\n').forEach((line, i) => {
const match = line.match(/^(.*)\=(.*)$/i) const match = line.match(/^([a-zA-Z0-9]*)\=(.*)$/i)
if (!match) { if (!match) {
return return
} }