diff --git a/index.js b/index.js index 7e6859a..2f7cc9b 100644 --- a/index.js +++ b/index.js @@ -52,8 +52,8 @@ const credentialsLaxRE = new RegExp(`^${BWS}*${authScheme}${BWS}+${token68}${BWS /** * @see https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 */ -const CTL = '[\x00-\x1F\x7F]' -const controlRE = new RegExp(CTL) +// eslint-disable-next-line no-control-regex +const controlRE = /[\x00-\x1F\x7F]/ /** * RegExp for basic auth user/pass