Skip to content

Commit 0258abe

Browse files
authored
refactor(index): consolidate controlre variables (#142)
1 parent 4916266 commit 0258abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const credentialsLaxRE = new RegExp(`^${BWS}*${authScheme}${BWS}+${token68}${BWS
5252
/**
5353
* @see https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
5454
*/
55-
const CTL = '[\x00-\x1F\x7F]'
56-
const controlRE = new RegExp(CTL)
55+
// eslint-disable-next-line no-control-regex
56+
const controlRE = /[\x00-\x1F\x7F]/
5757

5858
/**
5959
* RegExp for basic auth user/pass

0 commit comments

Comments
 (0)