Skip to content

Commit

Permalink
fix: setUserAgent false negative
Browse files Browse the repository at this point in the history
  • Loading branch information
deyhle committed Nov 24, 2021
1 parent 51c0a2c commit 0570c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TokenStore.ts
Expand Up @@ -240,7 +240,7 @@ export class TokenStore {
throw new Error('agent cannot be undefined');
}

if (!/^(?:\w+\/[\w.+-]+(?: \([\w]+\))? ?)+$/.test(agent)) {
if (!/^(?:\w+\/[\w.+-]+(?: \([\w,; ]+\))? ?)+$/.test(agent)) {
throw new Error('agent is malformed');
}

Expand Down

0 comments on commit 0570c9a

Please sign in to comment.