diff --git a/lib/helpers/is_bearer_header_only_error.js b/lib/helpers/is_bearer_header_only_error.js index 056125b9..1875d744 100644 --- a/lib/helpers/is_bearer_header_only_error.js +++ b/lib/helpers/is_bearer_header_only_error.js @@ -1,4 +1,4 @@ -const REGEXP = /((?:[a-zA-Z0-9._~+/-]+=*(?:\s+|$))|[^()<>@,;:\\"/?={}[\] ]+)(?:=([^\\"=\s,]+|"(?:[^"\\]|\\.)*"))?/g; +const REGEXP = /(\w+)=("[^"]*")/g; const NOPE = [false]; module.exports = function isBearerHeaderOnlyError(error) {