mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Fix regex skipping some claims
This commit is contained in:
parent
8d2b935565
commit
df896db473
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue